SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
116 19 0 0

Files

Class Bugs
org.eclipse.jgit.pgm.Archive 1
org.eclipse.jgit.pgm.Diff 1
org.eclipse.jgit.pgm.debug.BenchmarkReftable 3
org.eclipse.jgit.pgm.debug.DiffAlgorithms 4
org.eclipse.jgit.pgm.debug.LfsStore 1
org.eclipse.jgit.pgm.debug.TextHashFunctions 3
org.eclipse.jgit.pgm.opt.AbstractTreeIteratorHandler 1
org.eclipse.jgit.pgm.opt.CmdLineParser 1
org.eclipse.jgit.pgm.opt.ObjectIdHandler 1
org.eclipse.jgit.pgm.opt.RevCommitHandler 1
org.eclipse.jgit.pgm.opt.RevTreeHandler 1
org.eclipse.jgit.pgm.opt.SubcommandHandler 1

org.eclipse.jgit.pgm.Archive

Bug Category Details Line Priority
org.eclipse.jgit.pgm.Archive.run() may fail to clean up java.io.OutputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 53 Medium

org.eclipse.jgit.pgm.Diff

Bug Category Details Line Priority
Return value of TextBuiltin.die(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 155 Medium

org.eclipse.jgit.pgm.debug.BenchmarkReftable

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.eclipse.jgit.pgm.debug.BenchmarkReftable.writeStack() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 106 Medium
Return value of org.eclipse.jgit.util.RefList.get(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 192 Medium
Return value of org.eclipse.jgit.util.RefList.get(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 227 Medium

org.eclipse.jgit.pgm.debug.DiffAlgorithms

Bug Category Details Line Priority
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.DiffAlgorithms.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 221 Medium
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.DiffAlgorithms.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 223 Medium
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.DiffAlgorithms.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 226 Medium
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.DiffAlgorithms.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 228 Medium

org.eclipse.jgit.pgm.debug.LfsStore

Bug Category Details Line Priority
Return value of org.eclipse.jgit.pgm.TextBuiltin.die(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 275 Medium

org.eclipse.jgit.pgm.debug.TextHashFunctions

Bug Category Details Line Priority
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.TextHashFunctions.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 317 Medium
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.TextHashFunctions.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 327 Medium
Format string should use %n rather than \n in org.eclipse.jgit.pgm.debug.TextHashFunctions.run(Repository) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 320 Medium

org.eclipse.jgit.pgm.opt.AbstractTreeIteratorHandler

Bug Category Details Line Priority
Unchecked/unconfirmed cast from org.kohsuke.args4j.CmdLineParser to org.eclipse.jgit.pgm.opt.CmdLineParser in new org.eclipse.jgit.pgm.opt.AbstractTreeIteratorHandler(CmdLineParser, OptionDef, Setter) STYLE BC_UNCONFIRMED_CAST 63 Medium

org.eclipse.jgit.pgm.opt.CmdLineParser

Bug Category Details Line Priority
The class name org.eclipse.jgit.pgm.opt.CmdLineParser shadows the simple name of the superclass org.kohsuke.args4j.CmdLineParser BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_SUPERCLASS 50-307 High

org.eclipse.jgit.pgm.opt.ObjectIdHandler

Bug Category Details Line Priority
Unchecked/unconfirmed cast from org.kohsuke.args4j.CmdLineParser to org.eclipse.jgit.pgm.opt.CmdLineParser in new org.eclipse.jgit.pgm.opt.ObjectIdHandler(CmdLineParser, OptionDef, Setter) STYLE BC_UNCONFIRMED_CAST 49 Medium

org.eclipse.jgit.pgm.opt.RevCommitHandler

Bug Category Details Line Priority
Unchecked/unconfirmed cast from org.kohsuke.args4j.CmdLineParser to org.eclipse.jgit.pgm.opt.CmdLineParser in new org.eclipse.jgit.pgm.opt.RevCommitHandler(CmdLineParser, OptionDef, Setter) STYLE BC_UNCONFIRMED_CAST 53 Medium

org.eclipse.jgit.pgm.opt.RevTreeHandler

Bug Category Details Line Priority
Unchecked/unconfirmed cast from org.kohsuke.args4j.CmdLineParser to org.eclipse.jgit.pgm.opt.CmdLineParser in new org.eclipse.jgit.pgm.opt.RevTreeHandler(CmdLineParser, OptionDef, Setter) STYLE BC_UNCONFIRMED_CAST 52 Medium

org.eclipse.jgit.pgm.opt.SubcommandHandler

Bug Category Details Line Priority
Unchecked/unconfirmed cast from org.kohsuke.args4j.CmdLineParser to org.eclipse.jgit.pgm.opt.CmdLineParser in new org.eclipse.jgit.pgm.opt.SubcommandHandler(CmdLineParser, OptionDef, Setter) STYLE BC_UNCONFIRMED_CAST 49 Medium