Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53720

JDK11 Build Flow: FindBugs fails with RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE in some classes

XMLWordPrintable

    • 2.272

      It seems FindBugs does not 100% support Java 11 code generation.  RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE is displayed randomly for the code which is okay in JDK8.

      [INFO] --- findbugs-maven-plugin:3.0.5:check (findbugs) @ cli --- [INFO] BugInstance size is 3 [INFO] Error size is 0 [INFO] Total bugs: 3 [INFO] Nullcheck of channel at line 112 of value previously dereferenced in hudson.cli.SSHCLI.sshConnection(String, String, List, PrivateKeyProvider, boolean) [hudson.cli.SSHCLI, hudson.cli.SSHCLI] At SSHCLI.java:[line 112]Redundant null check at SSHCLI.java:[line 127] RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE [INFO] Nullcheck of client at line 99 of value previously dereferenced in hudson.cli.SSHCLI.sshConnection(String, String, List, PrivateKeyProvider, boolean) [hudson.cli.SSHCLI, hudson.cli.SSHCLI] At SSHCLI.java:[line 99]Redundant null check at SSHCLI.java:[line 131] RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE [INFO] Nullcheck of session at line 109 of value previously dereferenced in hudson.cli.SSHCLI.sshConnection(String, String, List, PrivateKeyProvider, boolean) [hudson.cli.SSHCLI, hudson.cli.SSHCLI] At SSHCLI.java:[line 109]Redundant null check at SSHCLI.java:[line 128] RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE [INFO]
      

            stefan_spieker Stefan Spieker
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: