Checkstyle Results

The following document contains the results of Checkstyle 6.2 with sun_checks.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
2 0 0 128

Rules

Category Rule Violations Severity
blocks LeftCurly 11  Error
RightCurly 3  Error
coding AvoidInlineConditionals 2  Error
HiddenField 8  Error
MagicNumber 5  Error
design DesignForExtension 15  Error
imports AvoidStarImport 1  Error
javadoc JavadocMethod 8  Error
JavadocPackage 1  Error
JavadocType 2  Error
JavadocVariable 7  Error
misc FinalParameters 9  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
13  Error
whitespace FileTabCharacter 2  Error
WhitespaceAround 41  Error

Details

ejava/jpa/examples/cache/Address.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 10
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 11
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 11
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 14
 Error javadoc JavadocVariable Missing a Javadoc comment. 14
 Error javadoc JavadocVariable Missing a Javadoc comment. 16
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 16
 Error coding MagicNumber '32' is a magic number. 16
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 16
 Error javadoc JavadocVariable Missing a Javadoc comment. 18
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 18
 Error coding MagicNumber '32' is a magic number. 18
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 18
 Error javadoc JavadocVariable Missing a Javadoc comment. 20
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 20
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 20
 Error javadoc JavadocVariable Missing a Javadoc comment. 22
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 22
 Error coding MagicNumber '10' is a magic number. 22
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 22
 Error regexp RegexpSingleline Line has trailing spaces. 24
 Error javadoc JavadocMethod Missing a Javadoc comment. 25
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 25
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 25
 Error regexp RegexpSingleline Line has trailing spaces. 26
 Error misc FinalParameters Parameter id should be final. 26
 Error coding HiddenField 'id' hides a field. 26
 Error blocks LeftCurly '{' should have line break after. 26
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 26
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 26
 Error design DesignForExtension Method 'getId' is not designed for extension - needs to be abstract, final or empty. 27
 Error blocks LeftCurly '{' should have line break after. 27
 Error regexp RegexpSingleline Line has trailing spaces. 28
 Error design DesignForExtension Method 'getStreet' is not designed for extension - needs to be abstract, final or empty. 29
 Error blocks LeftCurly '{' should have line break after. 29
 Error design DesignForExtension Method 'setStreet' is not designed for extension - needs to be abstract, final or empty. 30
 Error javadoc JavadocMethod Missing a Javadoc comment. 30
 Error misc FinalParameters Parameter street should be final. 30
 Error coding HiddenField 'street' hides a field. 30
 Error regexp RegexpSingleline Line has trailing spaces. 33
 Error design DesignForExtension Method 'getCity' is not designed for extension - needs to be abstract, final or empty. 34
 Error blocks LeftCurly '{' should have line break after. 34
 Error design DesignForExtension Method 'setCity' is not designed for extension - needs to be abstract, final or empty. 35
 Error javadoc JavadocMethod Missing a Javadoc comment. 35
 Error misc FinalParameters Parameter city should be final. 35
 Error coding HiddenField 'city' hides a field. 35
 Error regexp RegexpSingleline Line has trailing spaces. 38
 Error design DesignForExtension Method 'getState' is not designed for extension - needs to be abstract, final or empty. 39
 Error blocks LeftCurly '{' should have line break after. 39
 Error design DesignForExtension Method 'setState' is not designed for extension - needs to be abstract, final or empty. 40
 Error javadoc JavadocMethod Missing a Javadoc comment. 40
 Error misc FinalParameters Parameter state should be final. 40
 Error coding HiddenField 'state' hides a field. 40
 Error regexp RegexpSingleline Line has trailing spaces. 43
 Error design DesignForExtension Method 'getZip' is not designed for extension - needs to be abstract, final or empty. 44
 Error blocks LeftCurly '{' should have line break after. 44
 Error design DesignForExtension Method 'setZip' is not designed for extension - needs to be abstract, final or empty. 45
 Error javadoc JavadocMethod Missing a Javadoc comment. 45
 Error misc FinalParameters Parameter zip should be final. 45
 Error coding HiddenField 'zip' hides a field. 45
 Error regexp RegexpSingleline Line has trailing spaces. 48
 Error design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 49
 Error regexp RegexpSingleline Line has trailing spaces. 53

ejava/jpa/examples/cache/ZipAddress.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error imports AvoidStarImport Using the '.*' form of import should be avoided - javax.persistence.*. 3
 Error javadoc JavadocType Missing a Javadoc comment. 5
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 6
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 6
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 9
 Error javadoc JavadocVariable Missing a Javadoc comment. 9
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 10
 Error coding MagicNumber '10' is a magic number. 10
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 10
 Error javadoc JavadocVariable Missing a Javadoc comment. 12
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 12
 Error coding MagicNumber '32' is a magic number. 12
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 12
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 12
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 12
 Error regexp RegexpSingleline Line has trailing spaces. 14
 Error javadoc JavadocMethod Missing a Javadoc comment. 15
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 15
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 15
 Error javadoc JavadocMethod Missing a Javadoc comment. 16
 Error misc FinalParameters Parameter zip should be final. 16
 Error coding HiddenField 'zip' hides a field. 16
 Error misc FinalParameters Parameter city should be final. 16
 Error coding HiddenField 'city' hides a field. 16
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 17
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 17
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 18
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 18
 Error regexp RegexpSingleline Line has trailing spaces. 20
 Error javadoc JavadocMethod Missing a Javadoc comment. 21
 Error misc FinalParameters Parameter zip should be final. 21
 Error coding HiddenField 'zip' hides a field. 21
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 22
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 22
 Error design DesignForExtension Method 'getZip' is not designed for extension - needs to be abstract, final or empty. 24
 Error blocks LeftCurly '{' should have line break after. 24
 Error design DesignForExtension Method 'getCity' is not designed for extension - needs to be abstract, final or empty. 25
 Error blocks LeftCurly '{' should have line break after. 25
 Error regexp RegexpSingleline Line has trailing spaces. 26
 Error design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 27
 Error regexp RegexpSingleline Line has trailing spaces. 31
 Error design DesignForExtension Method 'hashCode' is not designed for extension - needs to be abstract, final or empty. 32
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 34
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 34
 Error whitespace WhitespaceAround '?' is not preceded with whitespace. 34
 Error coding AvoidInlineConditionals Avoid inline conditionals. 34
 Error regexp RegexpSingleline Line has trailing spaces. 36
 Error design DesignForExtension Method 'equals' is not designed for extension - needs to be abstract, final or empty. 37
 Error misc FinalParameters Parameter obj should be final. 38
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 39
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 39
 Error blocks LeftCurly '{' should have line break after. 39
 Error blocks RightCurly '}' should have line break before. 39
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 40
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 40
 Error blocks LeftCurly '{' should have line break after. 40
 Error blocks RightCurly '}' should have line break before. 40
 Error blocks LeftCurly '{' should have line break after. 41
 Error blocks RightCurly '}' should have line break before. 41
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 43
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 43
 Error coding AvoidInlineConditionals Avoid inline conditionals. 43
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 43
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 43