FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.0

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
101 19 0 0

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 86 Medium

org.eclipse.jgit.pgm.Main

Bug Category Details Line Priority
Found reliance on default encoding in org.eclipse.jgit.pgm.Main.execute(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 171 High
org.eclipse.jgit.pgm.Main.execute(String[]) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 178 Medium
org.eclipse.jgit.pgm.Main.run(String[]) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 127 Medium

org.eclipse.jgit.pgm.TextBuiltin

Bug Category Details Line Priority
Found reliance on default encoding in org.eclipse.jgit.pgm.TextBuiltin.init(Repository, String): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 165 High

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 253 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 255 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 258 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 260 Medium

org.eclipse.jgit.pgm.debug.ShowPackDelta

Bug Category Details Line Priority
org.eclipse.jgit.pgm.debug.ShowPackDelta.getDelta(ObjectReader, RevObject) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 125 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 351 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 361 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 354 Medium

org.eclipse.jgit.pgm.debug.TextHashFunctions$Line

Bug Category Details Line Priority
Should org.eclipse.jgit.pgm.debug.TextHashFunctions$Line be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 482-498 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 92 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 77-211 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 79 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 83 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 82 Medium