Project

General

Profile

Actions

Architecture #22764

closed

Architecture #22723: Backport scala 2.13 change for scala 3.0 migration

Correct warning due to nowarn or release in 7.2 branch

Added by François ARMAND over 1 year ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Effort required:
Name check:
To do
Fix check:
Checked
Regression:
No

Description

Things like:

[WARNING] warning: -target is deprecated: Use -release instead to compile against the correct platform API.

This one is due to having target deprecated by JDK 17 in favor of release. Both are supported by jdk 11, so we can use release even in 7.2

Or

[WARNING] warning: -target is deprecated: Use -release instead to compile against the correct platform API.
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/services/marshalling/XmlUnserialisationImpl.scala:280: warning: class StringEscapeUtils in package lang3 is deprecated
[WARNING]                                 StringEscapeUtils.unescapeXml((p \\ "value").text.trim),
[WARNING]                                 ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/batch/AutomaticReportsCleaner.scala:425: warning: @nowarn annotation does not suppress any warnings
[ERROR]                  .forkDaemon: @nowarn("msg=a type was inferred to be `\\w+`; this may indicate a programming error.")
[INFO]                                ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/batch/CheckInventoryUpdate.scala:102: warning: @nowarn annotation does not suppress any warnings
[WARNING]   ): @nowarn(
[INFO]       ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/batch/PurgeUnreferencedSoftwares.scala:69: warning: @nowarn annotation does not suppress any warnings
[WARNING]     ): @nowarn(
[INFO]         ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/inventory/InventoryProcessor.scala:190: warning: @nowarn annotation does not suppress any warnings
[WARNING]     @nowarn("msg=a type was inferred to be `Any`")
[INFO]      ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/repository/xml/ItemArchiveManagerImpl.scala:105: warning: @nowarn annotation does not suppress any warnings
[WARNING]   @nowarn("msg=a type was inferred to be `Any`")
[INFO]    ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/services/healthcheck/HealthcheckNotificationService.scala:77: warning: @nowarn annotation does not suppress any warnings
[WARNING]     .runNow: @nowarn("msg=a type was inferred to be `Any`")

Actions

Also available in: Atom PDF