Apache Commons logo Commons Validator

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
74 5 0 0

org.apache.commons.validator.Field

Bug Category Details Line Priority
instanceof will always return true for all non-null values in org.apache.commons.validator.Field.getVarValue(String), since all org.apache.commons.validator.Var are instances of org.apache.commons.validator.Var STYLE BC_VACUOUS_INSTANCEOF 500 Medium

org.apache.commons.validator.ValidatorAction

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.validator.ValidatorAction.readJavascriptFile(String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 423 High
Inconsistent synchronization of org.apache.commons.validator.ValidatorAction.jsFunction; locked 62% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 348 Medium
Class org.apache.commons.validator.ValidatorAction defines non-transient non-serializable instance field validationMethod BAD_PRACTICE SE_BAD_FIELD Not available High

org.apache.commons.validator.routines.IntegerValidator

Bug Category Details Line Priority
org.apache.commons.validator.routines.IntegerValidator.processParsedValue(Object, Format) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 253 Medium