The following document contains the results of FindBugs Report
FindBugs Version is 2.0.1
Threshold is
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.commandline.Parser.parse(String[]) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 66 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Comparison of String objects using == or != in org.apache.commons.cli2.option.GroupImpl.process(WriteableCommandLine, ListIterator) | BAD_PRACTICE | ES_COMPARING_STRINGS_WITH_EQ | 170 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.option.ReverseStringComparator.compare(Object, Object) negates the return value of String.compareTo(String) | BAD_PRACTICE | RV_NEGATING_RESULT_OF_COMPARETO | 544 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$CommandFirst implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 287-298 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$DefaultOptionFirst implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 322-333 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$GroupFirst implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 217-228 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$Named implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 370-386 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$PreferredName implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 410-415 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$Required implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 439-453 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$Reverse.compare(Object, Object) negates the return value of java.util.Comparator.compare(Object, Object) | BAD_PRACTICE | RV_NEGATING_RESULT_OF_COMPARETO | 193 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.util.Comparators$SwitchFirst implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 252-263 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in new org.apache.commons.cli2.util.HelpFormatter(String, String, String, int): new java.io.PrintWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 110 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.cli2.validation.DateValidator.getFormats() may expose internal representation by returning DateValidator.formats | MALICIOUS_CODE | EI_EXPOSE_REP | 306 | Medium |
org.apache.commons.cli2.validation.DateValidator.getMaximum() may expose internal representation by returning DateValidator.maximum | MALICIOUS_CODE | EI_EXPOSE_REP | 210 | Medium |
org.apache.commons.cli2.validation.DateValidator.getMinimum() may expose internal representation by returning DateValidator.minimum | MALICIOUS_CODE | EI_EXPOSE_REP | 230 | Medium |
org.apache.commons.cli2.validation.DateValidator.setFormats(DateFormat[]) may expose internal representation by storing an externally mutable object into DateValidator.formats | MALICIOUS_CODE | EI_EXPOSE_REP2 | 296 | Medium |
org.apache.commons.cli2.validation.DateValidator.setMaximum(Date) may expose internal representation by storing an externally mutable object into DateValidator.maximum | MALICIOUS_CODE | EI_EXPOSE_REP2 | 220 | Medium |
org.apache.commons.cli2.validation.DateValidator.setMinimum(Date) may expose internal representation by storing an externally mutable object into DateValidator.minimum | MALICIOUS_CODE | EI_EXPOSE_REP2 | 240 | Medium |