-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: warnings-ng-plugin
-
Environment:Jenkins: 2.150.2
warnings-ng-plugin: 2.1.2
gradle: 4.10.1
java: 1.8.0_144-b01
-
warnings-ng 2.2.0 (and analysis model 2.1.1)
My Jenkins build results in the following output:
[Error Prone] Sleeping for 5 seconds due to JENKINS-32191... [Error Prone] Parsing console log (workspace: 'D:\Jenkins\workspace\Develop Debug Branch Tests') [Error Prone] Attaching ResultAction with ID 'error-prone' to run 'Develop Debug Branch Tests #55'. [Error Prone] No valid reference build found that meets the criteria (NO_JOB_FAILURE - SUCCESSFUL_QUALITY_GATE) [Error Prone] All reported issues will be considered outstanding [Error Prone] Evaluating quality gates [Error Prone] -> All quality gates have been passed [Error Prone] Enabling health report (Healthy=2, Unhealthy=3, Minimum Severity=LOW) [Error Prone] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues)
Despite several warnings being reported earlier:
D:\Jenkins\workspace\Develop Debug Branch Tests\app\src\main\java\com\zao\testapp\util\json\JSONParser.java:35: warning: [TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution. <T> T parseFromJSONString(@Nullable String jsonString, @NonNull Type type); ^ (see https://errorprone.info/bugpattern/TypeParameterUnusedInFormals) D:\Jenkins\workspace\Develop Debug Branch Tests\app\src\main\java\com\zao\testapp\util\json\impl\gson\JSONParserGson.java:77: warning: [TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution. public <T> T parseFromJSONString(@Nullable final String jsonString, @NonNull final Type type) { ^ (see https://errorprone.info/bugpattern/TypeParameterUnusedInFormals) Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 warnings