Fork me on GitHub

FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
632700

jline.TerminalFactory

BugCategoryDetailsLinePriority
Potentially dangerous use of non-short-circuit logic in jline.TerminalFactory.create()STYLENS_DANGEROUS_NON_SHORT_CIRCUIT68High

jline.WindowsTerminal

BugCategoryDetailsLinePriority
Found reliance on default encoding in jline.WindowsTerminal.readConsoleInput(): String.getBytes()I18NDM_DEFAULT_ENCODING292High

jline.console.ConsoleKeys

BugCategoryDetailsLinePriority
Found reliance on default encoding in jline.console.ConsoleKeys.loadKeys(InputStream, String): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING97High

jline.console.ConsoleReader

BugCategoryDetailsLinePriority
Found reliance on default encoding in jline.console.ConsoleReader.stripAnsi(String): java.io.ByteArrayOutputStream.toString()I18NDM_DEFAULT_ENCODING525High
Found reliance on default encoding in jline.console.ConsoleReader.stripAnsi(String): String.getBytes()I18NDM_DEFAULT_ENCODING523High
jline.console.ConsoleReader.paste() may fail to close streamBAD_PRACTICEOS_OPEN_STREAM3631Medium
Redundant nullcheck of value, which is known to be non-null in jline.console.ConsoleReader.paste()STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE3644Medium
jline.console.ConsoleReader.paste() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION3637Medium
Switch statement found in jline.console.ConsoleReader.expandEvents(String) where one case falls through to the next caseSTYLESF_SWITCH_FALLTHROUGH735-747Medium
Switch statement found in jline.console.ConsoleReader.viSearch(char) where one case falls through to the next caseSTYLESF_SWITCH_FALLTHROUGH1741-1744Medium
Unread field: jline.console.ConsoleReader.isUnitTestInputPERFORMANCEURF_UNREAD_FIELD270Medium

jline.console.completer.AggregateCompleter$Completion

BugCategoryDetailsLinePriority
Should jline.console.completer.AggregateCompleter$Completion be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC114-122Medium

jline.console.completer.ArgumentCompleter$AbstractArgumentDelimiter

BugCategoryDetailsLinePriority
jline.console.completer.ArgumentCompleter$AbstractArgumentDelimiter.getEscapeChars() may expose internal representation by returning ArgumentCompleter$AbstractArgumentDelimiter.escapeCharsMALICIOUS_CODEEI_EXPOSE_REP236Medium
jline.console.completer.ArgumentCompleter$AbstractArgumentDelimiter.getQuoteChars() may expose internal representation by returning ArgumentCompleter$AbstractArgumentDelimiter.quoteCharsMALICIOUS_CODEEI_EXPOSE_REP228Medium
jline.console.completer.ArgumentCompleter$AbstractArgumentDelimiter.setEscapeChars(char[]) may expose internal representation by storing an externally mutable object into ArgumentCompleter$AbstractArgumentDelimiter.escapeCharsMALICIOUS_CODEEI_EXPOSE_REP2232Medium
jline.console.completer.ArgumentCompleter$AbstractArgumentDelimiter.setQuoteChars(char[]) may expose internal representation by storing an externally mutable object into ArgumentCompleter$AbstractArgumentDelimiter.quoteCharsMALICIOUS_CODEEI_EXPOSE_REP2224Medium
Possible null pointer dereference of buffer in jline.console.completer.ArgumentCompleter$AbstractArgumentDelimiter.delimit(CharSequence, int)CORRECTNESSNP_NULL_ON_SOME_PATH283Medium

jline.console.completer.ArgumentCompleter$ArgumentList

BugCategoryDetailsLinePriority
jline.console.completer.ArgumentCompleter$ArgumentList.getArguments() may expose internal representation by returning ArgumentCompleter$ArgumentList.argumentsMALICIOUS_CODEEI_EXPOSE_REP450Medium
jline.console.completer.ArgumentCompleter$ArgumentList.setArguments(String[]) may expose internal representation by storing an externally mutable object into ArgumentCompleter$ArgumentList.argumentsMALICIOUS_CODEEI_EXPOSE_REP2446Medium

jline.console.history.FileHistory

BugCategoryDetailsLinePriority
Found reliance on default encoding in jline.console.history.FileHistory.flush(): new java.io.PrintStream(OutputStream)I18NDM_DEFAULT_ENCODING87High
Found reliance on default encoding in jline.console.history.FileHistory.load(File): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING55High
Found reliance on default encoding in jline.console.history.FileHistory.load(InputStream): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING61High
jline.console.history.FileHistory.load(File) may fail to clean up java.io.ReaderEXPERIMENTALOBL_UNSATISFIED_OBLIGATION55Medium

jline.console.internal.ConsoleReaderInputStream$ConsoleEnumeration

BugCategoryDetailsLinePriority
Redundant nullcheck of jline.console.internal.ConsoleReaderInputStream$ConsoleEnumeration.next, which is known to be non-null in jline.console.internal.ConsoleReaderInputStream$ConsoleEnumeration.hasMoreElements()STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE84Medium

jline.internal.Configuration

BugCategoryDetailsLinePriority
jline.internal.Configuration.loadProperties(URL, Properties) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM62Medium

jline.internal.NonBlockingInputStream

BugCategoryDetailsLinePriority
Inconsistent synchronization of jline.internal.NonBlockingInputStream.isShutdown; locked 57% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNC117Medium

jline.internal.TerminalLineSettings

BugCategoryDetailsLinePriority
Found reliance on default encoding in jline.internal.TerminalLineSettings.exec(String[]): java.io.ByteArrayOutputStream.toString()I18NDM_DEFAULT_ENCODING218High