No issues found when parsing Error-Prone output from console log during gradle build

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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

            Assignee:
            Ulli Hafner
            Reporter:
            Zach Olbrys
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: