Checkstyle Results

The following document contains the results of Checkstyle 10.20.1 with sun_checks.xml ruleset.

Summary

Files  Info  Warnings  Errors
10 0 0 286

Files

File  I  W  E
com/github/rhwood/jinputvalidator/AbstractValidatorBeanInfo.java 0 0 44
com/github/rhwood/jinputvalidator/JInputValidator.java 0 0 84
com/github/rhwood/jinputvalidator/JInputValidatorPreferences.java 0 0 20
com/github/rhwood/jinputvalidator/PredicateValidator.java 0 0 45
com/github/rhwood/jinputvalidator/Validation.java 0 0 25
com/github/rhwood/jinputvalidator/VerifyingValidator.java 0 0 45
com/github/rhwood/jinputvalidator/border/ValidatorBorder.java 0 0 23

Rules

Category Rule Violations Severity
coding HiddenField 30  Error
MagicNumber 9  Error
design DesignForExtension 1  Error
FinalClass 1  Error
imports AvoidStarImport 1  Error
javadoc JavadocPackage 1  Error
JavadocStyle 1  Error
JavadocVariable 29  Error
misc FinalParameters 78  Error
naming ConstantName 8  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
12  Error
sizes LineLength
  • fileExtensions: "java"
114  Error
whitespace NoWhitespaceAfter 1  Error

Details

com/github/rhwood/jinputvalidator/AbstractValidatorBeanInfo.java

Severity Category Rule Message Line
 Error imports AvoidStarImport Using the '.*' form of import should be avoided - java.awt.*. 3
 Error sizes LineLength Line is longer than 80 characters (found 85). 19
 Error javadoc JavadocVariable Missing a Javadoc comment. 19
 Error sizes LineLength Line is longer than 80 characters (found 88). 20
 Error javadoc JavadocVariable Missing a Javadoc comment. 20
 Error javadoc JavadocVariable Missing a Javadoc comment. 23
 Error naming ConstantName Name 'EVENT_propertyChangeListener' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 23
 Error sizes LineLength Line is longer than 80 characters (found 102). 32
 Error sizes LineLength Line is longer than 80 characters (found 110). 33
 Error whitespace NoWhitespaceAfter '{' is followed by whitespace. 33
 Error sizes LineLength Line is longer than 80 characters (found 81). 34
 Error sizes LineLength Line is longer than 80 characters (found 107). 36
 Error javadoc JavadocVariable Missing a Javadoc comment. 43
 Error naming ConstantName Name 'METHOD_addPropertyChangeListener0' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 43
 Error javadoc JavadocVariable Missing a Javadoc comment. 44
 Error naming ConstantName Name 'METHOD_getPropertyChangeListeners1' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 44
 Error javadoc JavadocVariable Missing a Javadoc comment. 45
 Error naming ConstantName Name 'METHOD_removePropertyChangeListener2' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 45
 Error javadoc JavadocVariable Missing a Javadoc comment. 46
 Error naming ConstantName Name 'METHOD_shouldYieldFocus3' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 46
 Error javadoc JavadocVariable Missing a Javadoc comment. 47
 Error naming ConstantName Name 'METHOD_shouldYieldFocus4' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 47
 Error javadoc JavadocVariable Missing a Javadoc comment. 48
 Error naming ConstantName Name 'METHOD_verify5' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 48
 Error javadoc JavadocVariable Missing a Javadoc comment. 49
 Error naming ConstantName Name 'METHOD_verifyTarget6' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 49
 Error coding MagicNumber '7' is a magic number. 54
 Error sizes LineLength Line is longer than 80 characters (found 99). 57
 Error sizes LineLength Line is longer than 80 characters (found 105). 58
 Error sizes LineLength Line is longer than 80 characters (found 97). 61
 Error sizes LineLength Line is longer than 80 characters (found 102). 63
 Error sizes LineLength Line is longer than 80 characters (found 108). 64
 Error sizes LineLength Line is longer than 80 characters (found 89). 67
 Error sizes LineLength Line is longer than 80 characters (found 107). 70
 Error sizes LineLength Line is longer than 80 characters (found 120). 72
 Error sizes LineLength Line is longer than 80 characters (found 85). 75
 Error sizes LineLength Line is longer than 80 characters (found 107). 78
 Error sizes LineLength Line is longer than 80 characters (found 83). 87
 Error sizes LineLength Line is longer than 80 characters (found 82). 88
 Error sizes LineLength Line is longer than 80 characters (found 82). 99
 Error sizes LineLength Line is longer than 80 characters (found 82). 100
 Error misc FinalParameters Parameter iconKind should be final. 130
 Error sizes LineLength Line is longer than 80 characters (found 112). 134
 Error sizes LineLength Line is longer than 80 characters (found 112). 137

com/github/rhwood/jinputvalidator/JInputValidator.java

Severity Category Rule Message Line
 Error javadoc JavadocVariable Missing a Javadoc comment. 45
 Error javadoc JavadocVariable Missing a Javadoc comment. 46
 Error javadoc JavadocVariable Missing a Javadoc comment. 47
 Error javadoc JavadocVariable Missing a Javadoc comment. 48
 Error javadoc JavadocVariable Missing a Javadoc comment. 49
 Error javadoc JavadocVariable Missing a Javadoc comment. 50
 Error javadoc JavadocVariable Missing a Javadoc comment. 51
 Error javadoc JavadocVariable Missing a Javadoc comment. 52
 Error javadoc JavadocVariable Missing a Javadoc comment. 53
 Error sizes LineLength Line is longer than 80 characters (found 83). 56
 Error sizes LineLength Line is longer than 80 characters (found 83). 57
 Error sizes LineLength Line is longer than 80 characters (found 82). 60
 Error misc FinalParameters Parameter component should be final. 62
 Error coding HiddenField 'component' hides a field. 62
 Error sizes LineLength Line is longer than 80 characters (found 84). 69
 Error sizes LineLength Line is longer than 80 characters (found 83). 71
 Error sizes LineLength Line is longer than 80 characters (found 82). 74
 Error sizes LineLength Line is longer than 80 characters (found 83). 75
 Error sizes LineLength Line is longer than 80 characters (found 91). 78
 Error misc FinalParameters Parameter component should be final. 78
 Error coding HiddenField 'component' hides a field. 78
 Error misc FinalParameters Parameter onInput should be final. 78
 Error misc FinalParameters Parameter isVerifying should be final. 78
 Error coding HiddenField 'isVerifying' hides a field. 78
 Error sizes LineLength Line is longer than 80 characters (found 91). 79
 Error sizes LineLength Line is longer than 80 characters (found 84). 85
 Error sizes LineLength Line is longer than 80 characters (found 83). 87
 Error sizes LineLength Line is longer than 80 characters (found 82). 90
 Error sizes LineLength Line is longer than 80 characters (found 83). 91
 Error sizes LineLength Line is longer than 80 characters (found 89). 95
 Error misc FinalParameters Parameter component should be final. 95
 Error coding HiddenField 'component' hides a field. 95
 Error misc FinalParameters Parameter onInput should be final. 95
 Error misc FinalParameters Parameter isVerifying should be final. 95
 Error coding HiddenField 'isVerifying' hides a field. 95
 Error misc FinalParameters Parameter preferences should be final. 96
 Error coding HiddenField 'preferences' hides a field. 96
 Error sizes LineLength Line is longer than 80 characters (found 92). 101
 Error sizes LineLength Line is longer than 80 characters (found 82). 113
 Error misc FinalParameters Parameter isVerifying should be final. 118
 Error coding HiddenField 'isVerifying' hides a field. 118
 Error sizes LineLength Line is longer than 80 characters (found 81). 134
 Error misc FinalParameters Parameter toolTipText should be final. 140
 Error sizes LineLength Line is longer than 80 characters (found 106). 174
 Error coding HiddenField 'preferences' hides a field. 174
 Error sizes LineLength Line is longer than 80 characters (found 82). 180
 Error sizes LineLength Line is longer than 80 characters (found 84). 184
 Error sizes LineLength Line is longer than 80 characters (found 83). 185
 Error misc FinalParameters Parameter input should be final. 188
 Error sizes LineLength Line is longer than 80 characters (found 81). 197
 Error sizes LineLength Line is longer than 80 characters (found 95). 206
 Error regexp RegexpSingleline Line has trailing spaces. 213
 Error sizes LineLength Line is longer than 80 characters (found 82). 221
 Error regexp RegexpSingleline Line has trailing spaces. 222
 Error javadoc JavadocStyle Extra HTML tag found: </html>} markers if present. 231
 Error misc FinalParameters Parameter input should be final. 236
 Error coding MagicNumber '6' is a magic number. 239
 Error coding MagicNumber '7' is a magic number. 242
 Error sizes LineLength Line is longer than 80 characters (found 83). 250
 Error regexp RegexpSingleline Line has trailing spaces. 261
 Error misc FinalParameters Parameter listener should be final. 264
 Error regexp RegexpSingleline Line has trailing spaces. 270
 Error sizes LineLength Line is longer than 80 characters (found 97). 274
 Error misc FinalParameters Parameter propertyName should be final. 274
 Error misc FinalParameters Parameter listener should be final. 274
 Error regexp RegexpSingleline Line has trailing spaces. 280
 Error misc FinalParameters Parameter listener should be final. 283
 Error sizes LineLength Line is longer than 80 characters (found 81). 288
 Error regexp RegexpSingleline Line has trailing spaces. 289
 Error sizes LineLength Line is longer than 80 characters (found 100). 293
 Error misc FinalParameters Parameter propertyName should be final. 293
 Error misc FinalParameters Parameter listener should be final. 293
 Error regexp RegexpSingleline Line has trailing spaces. 299
 Error sizes LineLength Line is longer than 80 characters (found 81). 307
 Error regexp RegexpSingleline Line has trailing spaces. 308
 Error sizes LineLength Line is longer than 80 characters (found 85). 312
 Error misc FinalParameters Parameter propertyName should be final. 312
 Error sizes LineLength Line is longer than 80 characters (found 93). 316
 Error misc FinalParameters Parameter component should be final. 316
 Error coding HiddenField 'component' hides a field. 316
 Error misc FinalParameters Parameter changeListener should be final. 316
 Error misc FinalParameters Parameter e should be final. 325
 Error misc FinalParameters Parameter e should be final. 333
 Error misc FinalParameters Parameter e should be final. 341

com/github/rhwood/jinputvalidator/JInputValidatorPreferences.java

Severity Category Rule Message Line
 Error design FinalClass Class JInputValidatorPreferences should be declared as final. 65
 Error sizes LineLength Line is longer than 80 characters (found 123). 70
 Error regexp RegexpSingleline Line has trailing spaces. 82
 Error regexp RegexpSingleline Line has trailing spaces. 83
 Error regexp RegexpSingleline Line has trailing spaces. 100
 Error sizes LineLength Line is longer than 80 characters (found 92). 104
 Error sizes LineLength Line is longer than 80 characters (found 96). 178
 Error sizes LineLength Line is longer than 80 characters (found 91). 179
 Error sizes LineLength Line is longer than 80 characters (found 116). 182
 Error sizes LineLength Line is longer than 80 characters (found 166). 184
 Error sizes LineLength Line is longer than 80 characters (found 91). 188
 Error sizes LineLength Line is longer than 80 characters (found 123). 189
 Error sizes LineLength Line is longer than 80 characters (found 106). 190
 Error sizes LineLength Line is longer than 80 characters (found 143). 191
 Error sizes LineLength Line is longer than 80 characters (found 94). 192
 Error sizes LineLength Line is longer than 80 characters (found 127). 193
 Error sizes LineLength Line is longer than 80 characters (found 94). 194
 Error sizes LineLength Line is longer than 80 characters (found 127). 195
 Error sizes LineLength Line is longer than 80 characters (found 94). 196
 Error sizes LineLength Line is longer than 80 characters (found 127). 197

com/github/rhwood/jinputvalidator/PredicateValidator.java

Severity Category Rule Message Line
 Error javadoc JavadocVariable Missing a Javadoc comment. 31
 Error javadoc JavadocVariable Missing a Javadoc comment. 32
 Error javadoc JavadocVariable Missing a Javadoc comment. 33
 Error sizes LineLength Line is longer than 80 characters (found 87). 37
 Error sizes LineLength Line is longer than 80 characters (found 83). 43
 Error sizes LineLength Line is longer than 80 characters (found 102). 46
 Error misc FinalParameters Parameter component should be final. 46
 Error misc FinalParameters Parameter predicate should be final. 46
 Error coding HiddenField 'predicate' hides a field. 46
 Error misc FinalParameters Parameter invalid should be final. 46
 Error coding HiddenField 'invalid' hides a field. 46
 Error sizes LineLength Line is longer than 80 characters (found 127). 52
 Error sizes LineLength Line is longer than 80 characters (found 85). 61
 Error sizes LineLength Line is longer than 80 characters (found 95). 67
 Error sizes LineLength Line is longer than 80 characters (found 86). 68
 Error sizes LineLength Line is longer than 80 characters (found 140). 70
 Error misc FinalParameters Parameter component should be final. 70
 Error misc FinalParameters Parameter predicate should be final. 70
 Error coding HiddenField 'predicate' hides a field. 70
 Error misc FinalParameters Parameter invalid should be final. 70
 Error coding HiddenField 'invalid' hides a field. 70
 Error misc FinalParameters Parameter onInput should be final. 70
 Error misc FinalParameters Parameter isVerifying should be final. 70
 Error sizes LineLength Line is longer than 80 characters (found 117). 71
 Error sizes LineLength Line is longer than 80 characters (found 85). 80
 Error sizes LineLength Line is longer than 80 characters (found 81). 81
 Error sizes LineLength Line is longer than 80 characters (found 85). 83
 Error sizes LineLength Line is longer than 80 characters (found 95). 89
 Error sizes LineLength Line is longer than 80 characters (found 86). 90
 Error sizes LineLength Line is longer than 80 characters (found 95). 91
 Error sizes LineLength Line is longer than 80 characters (found 198). 93
 Error misc FinalParameters Parameter component should be final. 93
 Error misc FinalParameters Parameter predicate should be final. 93
 Error coding HiddenField 'predicate' hides a field. 93
 Error misc FinalParameters Parameter invalid should be final. 93
 Error coding HiddenField 'invalid' hides a field. 93
 Error misc FinalParameters Parameter valid should be final. 93
 Error coding HiddenField 'valid' hides a field. 93
 Error misc FinalParameters Parameter onInput should be final. 93
 Error misc FinalParameters Parameter isVerifying should be final. 93
 Error misc FinalParameters Parameter preferences should be final. 93
 Error sizes LineLength Line is longer than 80 characters (found 98). 115
 Error misc FinalParameters Parameter input should be final. 115
 Error misc FinalParameters Parameter preferences should be final. 115
 Error sizes LineLength Line is longer than 80 characters (found 117). 117

com/github/rhwood/jinputvalidator/Validation.java

Severity Category Rule Message Line
 Error javadoc JavadocVariable Missing a Javadoc comment. 30
 Error javadoc JavadocVariable Missing a Javadoc comment. 31
 Error javadoc JavadocVariable Missing a Javadoc comment. 32
 Error sizes LineLength Line is longer than 80 characters (found 131). 82
 Error misc FinalParameters Parameter type should be final. 87
 Error coding HiddenField 'type' hides a field. 87
 Error misc FinalParameters Parameter message should be final. 87
 Error coding HiddenField 'message' hides a field. 87
 Error sizes LineLength Line is longer than 80 characters (found 90). 98
 Error misc FinalParameters Parameter type should be final. 98
 Error coding HiddenField 'type' hides a field. 98
 Error misc FinalParameters Parameter message should be final. 98
 Error coding HiddenField 'message' hides a field. 98
 Error misc FinalParameters Parameter preferences should be final. 98
 Error coding HiddenField 'preferences' hides a field. 98
 Error regexp RegexpSingleline Line has trailing spaces. 106
 Error sizes LineLength Line is longer than 80 characters (found 86). 111
 Error misc FinalParameters Parameter validation should be final. 111
 Error misc FinalParameters Parameter preferences should be final. 111
 Error coding HiddenField 'preferences' hides a field. 111
 Error design DesignForExtension Class 'Validation' looks like designed for extension (can be subclassed), but the method 'hashCode' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Validation' final or making the method 'hashCode' static/final/abstract/empty, or adding allowed annotation for the method. 161
 Error coding MagicNumber '5' is a magic number. 163
 Error coding MagicNumber '79' is a magic number. 164
 Error coding MagicNumber '79' is a magic number. 165
 Error misc FinalParameters Parameter obj should be final. 178

com/github/rhwood/jinputvalidator/VerifyingValidator.java

Severity Category Rule Message Line
 Error javadoc JavadocVariable Missing a Javadoc comment. 29
 Error javadoc JavadocVariable Missing a Javadoc comment. 30
 Error javadoc JavadocVariable Missing a Javadoc comment. 31
 Error sizes LineLength Line is longer than 80 characters (found 149). 35
 Error sizes LineLength Line is longer than 80 characters (found 88). 41
 Error sizes LineLength Line is longer than 80 characters (found 97). 44
 Error misc FinalParameters Parameter component should be final. 44
 Error misc FinalParameters Parameter verifier should be final. 44
 Error coding HiddenField 'verifier' hides a field. 44
 Error misc FinalParameters Parameter invalid should be final. 44
 Error coding HiddenField 'invalid' hides a field. 44
 Error sizes LineLength Line is longer than 80 characters (found 257). 50
 Error sizes LineLength Line is longer than 80 characters (found 90). 59
 Error sizes LineLength Line is longer than 80 characters (found 95). 65
 Error sizes LineLength Line is longer than 80 characters (found 86). 66
 Error sizes LineLength Line is longer than 80 characters (found 135). 68
 Error misc FinalParameters Parameter component should be final. 68
 Error misc FinalParameters Parameter verifier should be final. 68
 Error coding HiddenField 'verifier' hides a field. 68
 Error misc FinalParameters Parameter invalid should be final. 68
 Error coding HiddenField 'invalid' hides a field. 68
 Error misc FinalParameters Parameter onInput should be final. 68
 Error misc FinalParameters Parameter isVerifying should be final. 68
 Error sizes LineLength Line is longer than 80 characters (found 116). 69
 Error sizes LineLength Line is longer than 80 characters (found 90). 78
 Error sizes LineLength Line is longer than 80 characters (found 90). 81
 Error sizes LineLength Line is longer than 80 characters (found 84). 83
 Error sizes LineLength Line is longer than 80 characters (found 87). 84
 Error sizes LineLength Line is longer than 80 characters (found 95). 87
 Error sizes LineLength Line is longer than 80 characters (found 86). 88
 Error sizes LineLength Line is longer than 80 characters (found 193). 91
 Error misc FinalParameters Parameter component should be final. 91
 Error misc FinalParameters Parameter verifier should be final. 91
 Error coding HiddenField 'verifier' hides a field. 91
 Error misc FinalParameters Parameter invalid should be final. 91
 Error coding HiddenField 'invalid' hides a field. 91
 Error misc FinalParameters Parameter valid should be final. 91
 Error coding HiddenField 'valid' hides a field. 91
 Error misc FinalParameters Parameter onInput should be final. 91
 Error misc FinalParameters Parameter isVerifying should be final. 91
 Error misc FinalParameters Parameter preferences should be final. 91
 Error sizes LineLength Line is longer than 80 characters (found 98). 112
 Error misc FinalParameters Parameter input should be final. 112
 Error misc FinalParameters Parameter preferences should be final. 112
 Error sizes LineLength Line is longer than 80 characters (found 85). 113

com/github/rhwood/jinputvalidator/border/ValidatorBorder.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error javadoc JavadocVariable Missing a Javadoc comment. 40
 Error sizes LineLength Line is longer than 80 characters (found 82). 49
 Error misc FinalParameters Parameter validation should be final. 53
 Error coding HiddenField 'validation' hides a field. 53
 Error misc FinalParameters Parameter originalBorder should be final. 53
 Error sizes LineLength Line is longer than 80 characters (found 99). 64
 Error misc FinalParameters Parameter c should be final. 64
 Error misc FinalParameters Parameter g should be final. 64
 Error misc FinalParameters Parameter x should be final. 64
 Error misc FinalParameters Parameter y should be final. 64
 Error misc FinalParameters Parameter width should be final. 64
 Error misc FinalParameters Parameter height should be final. 64
 Error sizes LineLength Line is longer than 80 characters (found 86). 67
 Error sizes LineLength Line is longer than 80 characters (found 81). 69
 Error sizes LineLength Line is longer than 80 characters (found 81). 70
 Error coding MagicNumber '1.5f' is a magic number. 70
 Error coding MagicNumber '1.5f' is a magic number. 70
 Error misc FinalParameters Parameter c should be final. 98
 Error misc FinalParameters Parameter insets should be final. 98
 Error sizes LineLength Line is longer than 80 characters (found 81). 100
 Error coding MagicNumber '1.5f' is a magic number. 101
 Error misc FinalParameters Parameter c should be final. 107