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

    Details

    • Similar Issues:

      Description

      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]
      

        Attachments

          Activity

          oleg_nenashev Oleg Nenashev created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Epic Link JENKINS-40689 [ 177392 ]
          oleg_nenashev Oleg Nenashev made changes -
          Summary JDK11 Build Flow: FindBugs fails with RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE on some classes JDK11 Build Flow: FindBugs fails with RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE in some classes
          oleg_nenashev Oleg Nenashev made changes -
          Labels java11
          oleg_nenashev Oleg Nenashev made changes -
          Labels java11 java11 java11-devtools-compatibility
          batmat Baptiste Mathus made changes -
          Labels java11 java11-devtools-compatibility java11 java11-devtools-compatibility triaged

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: