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

Fix findings from FindBugs static analysis

    Details

    • Similar Issues:

      Description

      FindBugs reports several issues present in the code.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountDiff.java
          src/main/java/hudson/plugins/sloccount/SloccountPublisher.java
          src/main/java/hudson/plugins/sloccount/SloccountResult.java
          src/main/java/hudson/plugins/sloccount/model/SloccountParser.java
          http://jenkins-ci.org/commit/sloccount-plugin/f336a1898e7699c22597abcf21861fd915fde943
          Log:
          JENKINS-22160 Fix findings from FindBugs static analysis

          • SloccountParser: Possible null pointer dereference.
          • SloccountDiff: Class defines compareTo(SloccountDiff) and uses Object.equals().
          • SloccountPublisher: Format string should use %n rather than \n.
          • BreadCrumbResult: Implements same interface as superclass.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountDiff.java src/main/java/hudson/plugins/sloccount/SloccountPublisher.java src/main/java/hudson/plugins/sloccount/SloccountResult.java src/main/java/hudson/plugins/sloccount/model/SloccountParser.java http://jenkins-ci.org/commit/sloccount-plugin/f336a1898e7699c22597abcf21861fd915fde943 Log: JENKINS-22160 Fix findings from FindBugs static analysis SloccountParser: Possible null pointer dereference. SloccountDiff: Class defines compareTo(SloccountDiff) and uses Object.equals(). SloccountPublisher: Format string should use %n rather than \n. BreadCrumbResult: Implements same interface as superclass.
          Hide
          mixalturek Michal Turek added a comment -

          Fixed, will be released in version 1.16.

          Show
          mixalturek Michal Turek added a comment - Fixed, will be released in version 1.16.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountResult.java
          http://jenkins-ci.org/commit/sloccount-plugin/88c7d07a4e6a2e24ddd34cfd8460d96985ad5370
          Log:
          JENKINS-22160 Fix findings from FindBugs static analysis

          • Private readResolve method in hudson.plugins.sloccount.SloccountResult not inherited by subclasses.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountResult.java http://jenkins-ci.org/commit/sloccount-plugin/88c7d07a4e6a2e24ddd34cfd8460d96985ad5370 Log: JENKINS-22160 Fix findings from FindBugs static analysis Private readResolve method in hudson.plugins.sloccount.SloccountResult not inherited by subclasses.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountResult.java
          http://jenkins-ci.org/commit/sloccount-plugin/8630fd143bce4b0ffe6e592b8e871c5891fdc058
          Log:
          Merge pull request #38 from mixalturek/master

          JENKINS-22160 Fix findings from FindBugs static analysis

          Compare: https://github.com/jenkinsci/sloccount-plugin/compare/2453b1e524c1...8630fd143bce

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountResult.java http://jenkins-ci.org/commit/sloccount-plugin/8630fd143bce4b0ffe6e592b8e871c5891fdc058 Log: Merge pull request #38 from mixalturek/master JENKINS-22160 Fix findings from FindBugs static analysis Compare: https://github.com/jenkinsci/sloccount-plugin/compare/2453b1e524c1...8630fd143bce

            People

            • Assignee:
              mixalturek Michal Turek
              Reporter:
              mixalturek Michal Turek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: