FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is

Effort is min

Summary

ClassesBugsErrorsMissing Classes
541800

org.apache.commons.cli2.commandline.Parser

BugCategoryDetailsLinePriority
org.apache.commons.cli2.commandline.Parser.parse(String[]) invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR66Medium

org.apache.commons.cli2.option.GroupImpl

BugCategoryDetailsLinePriority
Comparison of String objects using == or != in org.apache.commons.cli2.option.GroupImpl.process(WriteableCommandLine, ListIterator) BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ170Medium

org.apache.commons.cli2.option.ReverseStringComparator

BugCategoryDetailsLinePriority
org.apache.commons.cli2.option.ReverseStringComparator.compare(Object, Object) negates the return value of String.compareTo(String)BAD_PRACTICERV_NEGATING_RESULT_OF_COMPARETO544Medium

org.apache.commons.cli2.util.Comparators$CommandFirst

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$CommandFirst implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE287-298Medium

org.apache.commons.cli2.util.Comparators$DefaultOptionFirst

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$DefaultOptionFirst implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE322-333Medium

org.apache.commons.cli2.util.Comparators$GroupFirst

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$GroupFirst implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE217-228Medium

org.apache.commons.cli2.util.Comparators$Named

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$Named implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE370-386Medium

org.apache.commons.cli2.util.Comparators$PreferredName

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$PreferredName implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE410-415Medium

org.apache.commons.cli2.util.Comparators$Required

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$Required implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE439-453Medium

org.apache.commons.cli2.util.Comparators$Reverse

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$Reverse.compare(Object, Object) negates the return value of java.util.Comparator.compare(Object, Object)BAD_PRACTICERV_NEGATING_RESULT_OF_COMPARETO193Medium

org.apache.commons.cli2.util.Comparators$SwitchFirst

BugCategoryDetailsLinePriority
org.apache.commons.cli2.util.Comparators$SwitchFirst implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE252-263Medium

org.apache.commons.cli2.util.HelpFormatter

BugCategoryDetailsLinePriority
Found reliance on default encoding in new org.apache.commons.cli2.util.HelpFormatter(String, String, String, int): new java.io.PrintWriter(OutputStream)I18NDM_DEFAULT_ENCODING110High

org.apache.commons.cli2.validation.DateValidator

BugCategoryDetailsLinePriority
org.apache.commons.cli2.validation.DateValidator.getFormats() may expose internal representation by returning DateValidator.formatsMALICIOUS_CODEEI_EXPOSE_REP306Medium
org.apache.commons.cli2.validation.DateValidator.getMaximum() may expose internal representation by returning DateValidator.maximumMALICIOUS_CODEEI_EXPOSE_REP210Medium
org.apache.commons.cli2.validation.DateValidator.getMinimum() may expose internal representation by returning DateValidator.minimumMALICIOUS_CODEEI_EXPOSE_REP230Medium
org.apache.commons.cli2.validation.DateValidator.setFormats(DateFormat[]) may expose internal representation by storing an externally mutable object into DateValidator.formatsMALICIOUS_CODEEI_EXPOSE_REP2296Medium
org.apache.commons.cli2.validation.DateValidator.setMaximum(Date) may expose internal representation by storing an externally mutable object into DateValidator.maximumMALICIOUS_CODEEI_EXPOSE_REP2220Medium
org.apache.commons.cli2.validation.DateValidator.setMinimum(Date) may expose internal representation by storing an externally mutable object into DateValidator.minimumMALICIOUS_CODEEI_EXPOSE_REP2240Medium