Actions
Bug #7365
closedBug #7356: Correct a warning in rudder compilation
There is scala compilation warning in Rudder 3.0
Status:
Released
Priority:
2
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
There is some warning in compiling Rudder 3.0 :
These one, we can't do much, and they are here because of Guava:
[WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.CheckReturnValue not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub.
This one, we can't do anything (I was the one reporting the problem):
[WARNING] warning: While parsing annotations in /home/fanf/.m2/repository/com/unboundid/unboundid-ldapsdk/2.3.6/unboundid-ldapsdk-2.3.6.jar(com/unboundid/util/ThreadSafetyLevel.class ), could not find COMPLETELY_THREADSAFE in enum object ThreadSafetyLevel. [INFO] This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (SI-7014).
These one, we should be able to remove:
[WARNING] warning: there were 1 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 2 unchecked warning(s); re-run with -unchecked for details [WARNING] warning: there were 5 feature warning(s); re-run with -feature for details [WARNING] warning: there were 2 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 20 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 12 feature warning(s); re-run with -feature for details
This one is "ok", but it may change in the future: remove it.
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/rudder-core/src/main/scala/com/normation/rudder/repository/jdbc/ExpectedReportsJdbcRepository.scala:964: warning: match may not be exhaustive. [WARNING] It would fail on the following input: List(_) [WARNING] case t => t.sliding(2).map { [WARNING] ^
This one is clearly a problem:
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/rudder-web/src/main/scala/com/normation/rudder/web/snippet/administration/PropertiesManagement.scala:512: warning: a pure e xpression does nothing in statement position; you may be omitting necessary parentheses [WARNING] "ok" [WARNING] ^
Actions