FindBugs Bug Detector Report
The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
Summary
Classes |
Bugs |
Errors |
Missing Classes |
25 |
12 |
0 |
0 |
org.apache.maven.scm.provider.git.jgit.command.JGitUtils
Bug |
Category |
Details |
Line |
Priority |
Possible null pointer dereference in org.apache.maven.scm.provider.git.jgit.command.JGitUtils.hasCommits(Repository) due to return value of called method |
STYLE |
NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE |
216 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.JGitUtils$1
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.scm.provider.git.jgit.command.JGitUtils$1 defines clone() but doesn't implement Cloneable |
BAD_PRACTICE |
CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE |
404 |
High |
org.apache.maven.scm.provider.git.jgit.command.branch.JGitBranchCommand
Bug |
Category |
Details |
Line |
Priority |
Exception is caught when Exception is not thrown in org.apache.maven.scm.provider.git.jgit.command.branch.JGitBranchCommand.executeBranchCommand(ScmProviderRepository, ScmFileSet, String, String) |
STYLE |
REC_CATCH_EXCEPTION |
119 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.changelog.JGitChangeLogCommand$ChangeEntry
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.scm.provider.git.jgit.command.changelog.JGitChangeLogCommand$ChangeEntry.getAuthorDate() may expose internal representation by returning JGitChangeLogCommand$ChangeEntry.authorDate |
MALICIOUS_CODE |
EI_EXPOSE_REP |
266 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.changelog.JGitChangeLogCommand$ChangeEntry.getCommitterDate() may expose internal representation by returning JGitChangeLogCommand$ChangeEntry.committerDate |
MALICIOUS_CODE |
EI_EXPOSE_REP |
296 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.changelog.JGitChangeLogCommand$ChangeEntry.setAuthorDate(Date) may expose internal representation by storing an externally mutable object into JGitChangeLogCommand$ChangeEntry.authorDate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
271 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.changelog.JGitChangeLogCommand$ChangeEntry.setCommitterDate(Date) may expose internal representation by storing an externally mutable object into JGitChangeLogCommand$ChangeEntry.committerDate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
301 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.checkin.JGitCheckInCommand
Bug |
Category |
Details |
Line |
Priority |
Exception is caught when Exception is not thrown in org.apache.maven.scm.provider.git.jgit.command.checkin.JGitCheckInCommand.executeCheckInCommand(ScmProviderRepository, ScmFileSet, String, ScmVersion) |
STYLE |
REC_CATCH_EXCEPTION |
154 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.checkout.JGitCheckOutCommand
Bug |
Category |
Details |
Line |
Priority |
Exception is caught when Exception is not thrown in org.apache.maven.scm.provider.git.jgit.command.checkout.JGitCheckOutCommand.executeCheckOutCommand(ScmProviderRepository, ScmFileSet, ScmVersion, boolean, boolean) |
STYLE |
REC_CATCH_EXCEPTION |
207 |
Medium |
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.scm.provider.git.jgit.command.checkout.JGitCheckOutCommand.executeCheckOutCommand(ScmProviderRepository, ScmFileSet, ScmVersion, boolean, boolean) |
BAD_PRACTICE |
RV_RETURN_VALUE_IGNORED_BAD_PRACTICE |
104 |
Medium |
org.apache.maven.scm.provider.git.jgit.command.diff.JGitDiffCommand
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in org.apache.maven.scm.provider.git.jgit.command.diff.JGitDiffCommand.callDiff(Git, ScmVersion, ScmVersion): java.io.ByteArrayOutputStream.toString() |
I18N |
DM_DEFAULT_ENCODING |
104 |
High |