The following document contains the results of Checkstyle 6.2 with sun_checks.xml ruleset. 
| File | |||
|---|---|---|---|
| ejava/examples/webtier/jpa/JPADAOTypeFactory.java | 0 | 0 | 8 |
| ejava/examples/webtier/jpa/JPAUtil.java | 0 | 0 | 43 |
| ejava/examples/webtier/jpa/StudentJPADAO.java | 0 | 0 | 46 |
| Category | Rule | Violations | Severity |
|---|---|---|---|
| blocks | LeftCurly | 1 | |
| RightCurly | 6 | ||
| coding | AvoidInlineConditionals | 1 | |
| design | DesignForExtension | 9 | |
| HideUtilityClassConstructor | 1 | ||
| VisibilityModifier | 1 | ||
| javadoc | JavadocMethod | 15 | |
| JavadocPackage | 1 | ||
| JavadocStyle | 1 | ||
| JavadocType | 2 | ||
| JavadocVariable | 6 | ||
| misc | FinalParameters | 17 | |
| naming | ConstantName | 2 | |
| regexp | RegexpSingleline
|
19 | |
| sizes | LineLength | 2 | |
| whitespace | OperatorWrap | 4 | |
| WhitespaceAfter | 1 | ||
| WhitespaceAround | 8 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | JavadocPackage | Missing package-info.java file. | ||
| javadoc | JavadocType | Missing a Javadoc comment. | 7 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 8 | |
| javadoc | JavadocVariable | Missing a Javadoc comment. | 8 | |
| design | DesignForExtension | Method 'getName' is not designed for extension - needs to be abstract, final or empty. | 13 | |
| blocks | LeftCurly | '{' should have line break after. | 13 | |
| design | DesignForExtension | Method 'getStudentDAO' is not designed for extension - needs to be abstract, final or empty. | 15 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 15 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| regexp | RegexpSingleline | Line has trailing spaces. | 15 | |
| design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 20 | |
| javadoc | JavadocVariable | Missing a Javadoc comment. | 21 | |
| naming | ConstantName | Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 21 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 22 | |
| javadoc | JavadocVariable | Missing a Javadoc comment. | 22 | |
| naming | ConstantName | Name 'factories' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 22 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 24 | |
| javadoc | JavadocVariable | Missing a Javadoc comment. | 24 | |
| javadoc | JavadocVariable | Missing a Javadoc comment. | 26 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 27 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 28 | |
| misc | FinalParameters | Parameter props should be final. | 31 | |
| javadoc | JavadocMethod | Expected @param tag for 'props'. | 31 | |
| whitespace | WhitespaceAfter | 'cast' is not followed by whitespace. | 32 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 34 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 36 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 38 | |
| javadoc | JavadocMethod | Expected an @return tag. | 42 | |
| misc | FinalParameters | Parameter puName should be final. | 42 | |
| whitespace | WhitespaceAround | 'synchronized' is not followed by whitespace. | 45 | |
| whitespace | OperatorWrap | '?' should be on a new line. | 49 | |
| coding | AvoidInlineConditionals | Avoid inline conditionals. | 49 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 50 | |
| whitespace | OperatorWrap | ':' should be on a new line. | 51 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 52 | |
| sizes | LineLength | Line is longer than 80 characters (found 107). | 52 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 59 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 60 | |
| misc | FinalParameters | Parameter emgr should be final. | 60 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 62 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 64 | |
| misc | FinalParameters | Parameter puName should be final. | 64 | |
| sizes | LineLength | Line is longer than 80 characters (found 81). | 70 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 77 | |
| javadoc | JavadocMethod | Expected an @return tag. | 89 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 92 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 100 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 104 | |
| whitespace | WhitespaceAround | 'synchronized' is not followed by whitespace. | 108 | |
| whitespace | WhitespaceAround | 'for' is not followed by whitespace. | 109 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 116 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 117 |
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | JavadocType | Missing a Javadoc comment. | 17 | |
| javadoc | JavadocVariable | Missing a Javadoc comment. | 18 | |
| design | VisibilityModifier | Variable 'log' must be private and have accessor methods. | 18 | |
| design | DesignForExtension | Method 'create' is not designed for extension - needs to be abstract, final or empty. | 20 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 20 | |
| misc | FinalParameters | Parameter student should be final. | 20 | |
| blocks | RightCurly | '}' should be on the same line. | 23 | |
| design | DesignForExtension | Method 'find' is not designed for extension - needs to be abstract, final or empty. | 30 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 30 | |
| misc | FinalParameters | Parameter index should be final. | 31 | |
| misc | FinalParameters | Parameter count should be final. | 31 | |
| whitespace | OperatorWrap | '+' should be on a new line. | 34 | |
| blocks | RightCurly | '}' should be on the same line. | 38 | |
| design | DesignForExtension | Method 'find' is not designed for extension - needs to be abstract, final or empty. | 44 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 44 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 46 | |
| misc | FinalParameters | Parameter name should be final. | 46 | |
| misc | FinalParameters | Parameter args should be final. | 46 | |
| misc | FinalParameters | Parameter index should be final. | 46 | |
| misc | FinalParameters | Parameter count should be final. | 46 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 49 | |
| whitespace | OperatorWrap | '+' should be on a new line. | 49 | |
| whitespace | WhitespaceAround | '!=' is not preceded with whitespace. | 52 | |
| whitespace | WhitespaceAround | '!=' is not followed by whitespace. | 52 | |
| whitespace | WhitespaceAround | 'for' is not followed by whitespace. | 53 | |
| whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 53 | |
| whitespace | WhitespaceAround | '=' is not followed by whitespace. | 53 | |
| blocks | RightCurly | '}' should be on the same line. | 64 | |
| regexp | RegexpSingleline | Line has trailing spaces. | 70 | |
| design | DesignForExtension | Method 'find' is not designed for extension - needs to be abstract, final or empty. | 70 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 70 | |
| misc | FinalParameters | Parameter name should be final. | 70 | |
| misc | FinalParameters | Parameter index should be final. | 70 | |
| misc | FinalParameters | Parameter count should be final. | 70 | |
| design | DesignForExtension | Method 'get' is not designed for extension - needs to be abstract, final or empty. | 75 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 75 | |
| misc | FinalParameters | Parameter id should be final. | 75 | |
| blocks | RightCurly | '}' should be on the same line. | 78 | |
| design | DesignForExtension | Method 'remove' is not designed for extension - needs to be abstract, final or empty. | 84 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 84 | |
| misc | FinalParameters | Parameter student should be final. | 84 | |
| blocks | RightCurly | '}' should be on the same line. | 88 | |
| design | DesignForExtension | Method 'update' is not designed for extension - needs to be abstract, final or empty. | 94 | |
| javadoc | JavadocMethod | Missing a Javadoc comment. | 94 | |
| misc | FinalParameters | Parameter student should be final. | 94 | |
| blocks | RightCurly | '}' should be on the same line. | 98 |