Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
3 0 0 97

Rules

Category Rule Violations Severity
blocks LeftCurly 1  Error
RightCurly 6  Error
coding AvoidInlineConditionals 1  Error
design DesignForExtension 9  Error
HideUtilityClassConstructor 1  Error
VisibilityModifier 1  Error
javadoc JavadocMethod 15  Error
JavadocPackage 1  Error
JavadocStyle 1  Error
JavadocType 2  Error
JavadocVariable 6  Error
misc FinalParameters 17  Error
naming ConstantName 2  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
19  Error
sizes LineLength 2  Error
whitespace OperatorWrap 4  Error
WhitespaceAfter 1  Error
WhitespaceAround 8  Error

Details

ejava/examples/webtier/jpa/JPADAOTypeFactory.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error javadoc JavadocType Missing a Javadoc comment. 7
 Error regexp RegexpSingleline Line has trailing spaces. 8
 Error javadoc JavadocVariable Missing a Javadoc comment. 8
 Error design DesignForExtension Method 'getName' is not designed for extension - needs to be abstract, final or empty. 13
 Error blocks LeftCurly '{' should have line break after. 13
 Error design DesignForExtension Method 'getStudentDAO' is not designed for extension - needs to be abstract, final or empty. 15
 Error javadoc JavadocMethod Missing a Javadoc comment. 15

ejava/examples/webtier/jpa/JPAUtil.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 15
 Error design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 20
 Error javadoc JavadocVariable Missing a Javadoc comment. 21
 Error naming ConstantName Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 21
 Error regexp RegexpSingleline Line has trailing spaces. 22
 Error javadoc JavadocVariable Missing a Javadoc comment. 22
 Error naming ConstantName Name 'factories' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 22
 Error regexp RegexpSingleline Line has trailing spaces. 24
 Error javadoc JavadocVariable Missing a Javadoc comment. 24
 Error javadoc JavadocVariable Missing a Javadoc comment. 26
 Error regexp RegexpSingleline Line has trailing spaces. 27
 Error javadoc JavadocStyle First sentence should end with a period. 28
 Error misc FinalParameters Parameter props should be final. 31
 Error javadoc JavadocMethod Expected @param tag for 'props'. 31
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 32
 Error regexp RegexpSingleline Line has trailing spaces. 34
 Error regexp RegexpSingleline Line has trailing spaces. 36
 Error regexp RegexpSingleline Line has trailing spaces. 38
 Error javadoc JavadocMethod Expected an @return tag. 42
 Error misc FinalParameters Parameter puName should be final. 42
 Error whitespace WhitespaceAround 'synchronized' is not followed by whitespace. 45
 Error whitespace OperatorWrap '?' should be on a new line. 49
 Error coding AvoidInlineConditionals Avoid inline conditionals. 49
 Error regexp RegexpSingleline Line has trailing spaces. 50
 Error whitespace OperatorWrap ':' should be on a new line. 51
 Error regexp RegexpSingleline Line has trailing spaces. 52
 Error sizes LineLength Line is longer than 80 characters (found 107). 52
 Error regexp RegexpSingleline Line has trailing spaces. 59
 Error javadoc JavadocMethod Missing a Javadoc comment. 60
 Error misc FinalParameters Parameter emgr should be final. 60
 Error regexp RegexpSingleline Line has trailing spaces. 62
 Error javadoc JavadocMethod Missing a Javadoc comment. 64
 Error misc FinalParameters Parameter puName should be final. 64
 Error sizes LineLength Line is longer than 80 characters (found 81). 70
 Error javadoc JavadocMethod Missing a Javadoc comment. 77
 Error javadoc JavadocMethod Expected an @return tag. 89
 Error javadoc JavadocMethod Missing a Javadoc comment. 92
 Error regexp RegexpSingleline Line has trailing spaces. 100
 Error regexp RegexpSingleline Line has trailing spaces. 104
 Error whitespace WhitespaceAround 'synchronized' is not followed by whitespace. 108
 Error whitespace WhitespaceAround 'for' is not followed by whitespace. 109
 Error regexp RegexpSingleline Line has trailing spaces. 116
 Error regexp RegexpSingleline Line has trailing spaces. 117

ejava/examples/webtier/jpa/StudentJPADAO.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 17
 Error javadoc JavadocVariable Missing a Javadoc comment. 18
 Error design VisibilityModifier Variable 'log' must be private and have accessor methods. 18
 Error design DesignForExtension Method 'create' is not designed for extension - needs to be abstract, final or empty. 20
 Error javadoc JavadocMethod Missing a Javadoc comment. 20
 Error misc FinalParameters Parameter student should be final. 20
 Error blocks RightCurly '}' should be on the same line. 23
 Error design DesignForExtension Method 'find' 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 index should be final. 31
 Error misc FinalParameters Parameter count should be final. 31
 Error whitespace OperatorWrap '+' should be on a new line. 34
 Error blocks RightCurly '}' should be on the same line. 38
 Error design DesignForExtension Method 'find' is not designed for extension - needs to be abstract, final or empty. 44
 Error javadoc JavadocMethod Missing a Javadoc comment. 44
 Error regexp RegexpSingleline Line has trailing spaces. 46
 Error misc FinalParameters Parameter name should be final. 46
 Error misc FinalParameters Parameter args should be final. 46
 Error misc FinalParameters Parameter index should be final. 46
 Error misc FinalParameters Parameter count should be final. 46
 Error regexp RegexpSingleline Line has trailing spaces. 49
 Error whitespace OperatorWrap '+' should be on a new line. 49
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 52
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 52
 Error whitespace WhitespaceAround 'for' is not followed by whitespace. 53
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 53
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 53
 Error blocks RightCurly '}' should be on the same line. 64
 Error regexp RegexpSingleline Line has trailing spaces. 70
 Error design DesignForExtension Method 'find' is not designed for extension - needs to be abstract, final or empty. 70
 Error javadoc JavadocMethod Missing a Javadoc comment. 70
 Error misc FinalParameters Parameter name should be final. 70
 Error misc FinalParameters Parameter index should be final. 70
 Error misc FinalParameters Parameter count should be final. 70
 Error design DesignForExtension Method 'get' is not designed for extension - needs to be abstract, final or empty. 75
 Error javadoc JavadocMethod Missing a Javadoc comment. 75
 Error misc FinalParameters Parameter id should be final. 75
 Error blocks RightCurly '}' should be on the same line. 78
 Error design DesignForExtension Method 'remove' is not designed for extension - needs to be abstract, final or empty. 84
 Error javadoc JavadocMethod Missing a Javadoc comment. 84
 Error misc FinalParameters Parameter student should be final. 84
 Error blocks RightCurly '}' should be on the same line. 88
 Error design DesignForExtension Method 'update' is not designed for extension - needs to be abstract, final or empty. 94
 Error javadoc JavadocMethod Missing a Javadoc comment. 94
 Error misc FinalParameters Parameter student should be final. 94
 Error blocks RightCurly '}' should be on the same line. 98