The following document contains the results of Checkstyle 6.2 with sun_checks.xml ruleset.
File | ![]() |
![]() |
![]() |
---|---|---|---|
ejava/examples/webtier/web/JPADAOInit.java | 0 | 0 | 33 |
ejava/examples/webtier/web/JPAFilter.java | 0 | 0 | 80 |
ejava/examples/webtier/web/RegistrarHandlerServlet.java | 0 | 0 | 127 |
Category | Rule | Violations | Severity |
---|---|---|---|
blocks | EmptyBlock | 4 | ![]() |
LeftCurly | 5 | ![]() | |
RightCurly | 20 | ![]() | |
coding | AvoidInlineConditionals | 3 | ![]() |
MagicNumber | 2 | ![]() | |
SimplifyBooleanExpression | 1 | ![]() | |
design | DesignForExtension | 11 | ![]() |
VisibilityModifier | 4 | ![]() | |
javadoc | JavadocMethod | 22 | ![]() |
JavadocPackage | 1 | ![]() | |
JavadocType | 9 | ![]() | |
JavadocVariable | 9 | ![]() | |
misc | FinalParameters | 30 | ![]() |
regexp | RegexpSingleline
|
77 | ![]() |
sizes | LineLength | 4 | ![]() |
whitespace | EmptyForIteratorPad | 1 | ![]() |
OperatorWrap | 4 | ![]() | |
WhitespaceAfter | 7 | ![]() | |
WhitespaceAround | 26 | ![]() |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 21 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 23 |
![]() |
design | VisibilityModifier | Variable 'log' must be private and have accessor methods. | 23 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 24 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 25 |
![]() |
whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 25 |
![]() |
whitespace | WhitespaceAround | '=' is not followed by whitespace. | 25 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 27 |
![]() |
design | DesignForExtension | Method 'init' is not designed for extension - needs to be abstract, final or empty. | 28 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 28 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 29 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 33 |
![]() |
whitespace | WhitespaceAfter | ',' is not followed by whitespace. | 35 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 40 |
![]() |
design | DesignForExtension | Method 'doGet' is not designed for extension - needs to be abstract, final or empty. | 40 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 40 |
![]() |
misc | FinalParameters | Parameter request should be final. | 40 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 41 |
![]() |
misc | FinalParameters | Parameter response should be final. | 41 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 43 |
![]() |
whitespace | WhitespaceAfter | ',' is not followed by whitespace. | 47 |
![]() |
whitespace | WhitespaceAfter | ',' is not followed by whitespace. | 48 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 49 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 51 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 53 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 64 |
![]() |
design | DesignForExtension | Method 'doPost' is not designed for extension - needs to be abstract, final or empty. | 64 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 64 |
![]() |
misc | FinalParameters | Parameter request should be final. | 64 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 65 |
![]() |
misc | FinalParameters | Parameter response should be final. | 65 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 69 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 70 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 28 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 29 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 30 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 31 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 32 |
![]() |
whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 32 |
![]() |
whitespace | WhitespaceAround | '=' is not followed by whitespace. | 32 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 35 |
![]() |
design | DesignForExtension | Method 'init' is not designed for extension - needs to be abstract, final or empty. | 36 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 36 |
![]() |
misc | FinalParameters | Parameter config should be final. | 36 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 37 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 41 |
![]() |
whitespace | WhitespaceAround | 'for' is not followed by whitespace. | 42 |
![]() |
whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 42 |
![]() |
whitespace | WhitespaceAround | '=' is not followed by whitespace. | 42 |
![]() |
whitespace | EmptyForIteratorPad | ';' is followed by whitespace. | 43 |
![]() |
whitespace | WhitespaceAfter | 'cast' is not followed by whitespace. | 44 |
![]() |
whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 45 |
![]() |
whitespace | WhitespaceAround | '=' is not followed by whitespace. | 45 |
![]() |
whitespace | WhitespaceAfter | 'cast' is not followed by whitespace. | 45 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 49 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 51 |
![]() |
design | DesignForExtension | Method 'doFilter' is not designed for extension - needs to be abstract, final or empty. | 51 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 51 |
![]() |
misc | FinalParameters | Parameter request should be final. | 51 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 52 |
![]() |
misc | FinalParameters | Parameter response should be final. | 52 |
![]() |
misc | FinalParameters | Parameter chain should be final. | 53 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 54 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 56 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 62 |
![]() |
whitespace | WhitespaceAround | '==' is not preceded with whitespace. | 66 |
![]() |
coding | SimplifyBooleanExpression | Expression can be simplified. | 66 |
![]() |
whitespace | WhitespaceAround | '==' is not followed by whitespace. | 66 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 69 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 72 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 76 |
![]() |
design | DesignForExtension | Method 'destroy' is not designed for extension - needs to be abstract, final or empty. | 82 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 82 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 86 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 91 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 93 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 94 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 97 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 99 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 102 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 104 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 107 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 109 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 111 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 113 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 114 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 115 |
![]() |
misc | FinalParameters | Parameter context should be final. | 116 |
![]() |
misc | FinalParameters | Parameter name should be final. | 116 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 120 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 121 |
![]() |
whitespace | WhitespaceAround | '{' is not followed by whitespace. | 121 |
![]() |
whitespace | WhitespaceAround | '}' is not preceded with whitespace. | 121 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 125 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 85). | 125 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 125 |
![]() |
misc | FinalParameters | Parameter level should be final. | 125 |
![]() |
misc | FinalParameters | Parameter text should be final. | 125 |
![]() |
misc | FinalParameters | Parameter context should be final. | 125 |
![]() |
misc | FinalParameters | Parameter name should be final. | 125 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 87). | 127 |
![]() |
whitespace | WhitespaceAround | '+' is not followed by whitespace. | 133 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 136 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 140 |
![]() |
design | DesignForExtension | Method 'isContext' is not designed for extension - needs to be abstract, final or empty. | 141 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 141 |
![]() |
misc | FinalParameters | Parameter className should be final. | 141 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 143 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 146 |
![]() |
design | DesignForExtension | Method 'getPad' is not designed for extension - needs to be abstract, final or empty. | 153 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 153 |
![]() |
misc | FinalParameters | Parameter level should be final. | 153 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 23 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 25 |
![]() |
design | VisibilityModifier | Variable 'log' must be private and have accessor methods. | 25 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 26 |
![]() |
design | VisibilityModifier | Variable 'registrar' must be private and have accessor methods. | 26 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 27 |
![]() |
design | VisibilityModifier | Variable 'handlers' must be private and have accessor methods. | 27 |
![]() |
design | DesignForExtension | Method 'init' is not designed for extension - needs to be abstract, final or empty. | 29 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 29 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 31 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 32 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 34 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 42 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 43 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 44 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 45 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 46 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 47 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 50 |
![]() |
design | DesignForExtension | Method 'doGet' is not designed for extension - needs to be abstract, final or empty. | 51 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 51 |
![]() |
misc | FinalParameters | Parameter request should be final. | 51 |
![]() |
misc | FinalParameters | Parameter response should be final. | 52 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 53 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 59 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 65 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 72 |
![]() |
design | DesignForExtension | Method 'doPost' is not designed for extension - needs to be abstract, final or empty. | 75 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 75 |
![]() |
misc | FinalParameters | Parameter request should be final. | 75 |
![]() |
misc | FinalParameters | Parameter response should be final. | 76 |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 80 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 81 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 85 |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 86 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 87 |
![]() |
misc | FinalParameters | Parameter request should be final. | 87 |
![]() |
misc | FinalParameters | Parameter response should be final. | 88 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 93 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 99 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 110 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 111 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 113 |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 114 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 115 |
![]() |
misc | FinalParameters | Parameter request should be final. | 115 |
![]() |
misc | FinalParameters | Parameter response should be final. | 116 |
![]() |
coding | MagicNumber | '100' is a magic number. | 119 |
![]() |
blocks | LeftCurly | '{' should have line break after. | 120 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 120 |
![]() |
blocks | RightCurly | '}' should have line break before. | 120 |
![]() |
whitespace | WhitespaceAround | 'catch' is not followed by whitespace. | 121 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 121 |
![]() |
whitespace | WhitespaceAround | '{' is not followed by whitespace. | 121 |
![]() |
whitespace | WhitespaceAround | '}' is not preceded with whitespace. | 121 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 122 |
![]() |
whitespace | WhitespaceAround | 'for' is not followed by whitespace. | 126 |
![]() |
whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 126 |
![]() |
whitespace | WhitespaceAround | '=' is not followed by whitespace. | 126 |
![]() |
whitespace | WhitespaceAround | '<' is not preceded with whitespace. | 126 |
![]() |
whitespace | WhitespaceAround | '<' is not followed by whitespace. | 126 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 141 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 152 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 153 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 156 |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 157 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 158 |
![]() |
misc | FinalParameters | Parameter request should be final. | 158 |
![]() |
misc | FinalParameters | Parameter response should be final. | 159 |
![]() |
whitespace | WhitespaceAfter | 'cast' is not followed by whitespace. | 163 |
![]() |
coding | AvoidInlineConditionals | Avoid inline conditionals. | 164 |
![]() |
whitespace | WhitespaceAfter | 'cast' is not followed by whitespace. | 165 |
![]() |
coding | AvoidInlineConditionals | Avoid inline conditionals. | 166 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 167 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 171 |
![]() |
blocks | LeftCurly | '{' should have line break after. | 173 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 173 |
![]() |
blocks | RightCurly | '}' should have line break before. | 173 |
![]() |
whitespace | WhitespaceAround | 'catch' is not followed by whitespace. | 174 |
![]() |
whitespace | OperatorWrap | '+' should be on a new line. | 175 |
![]() |
coding | MagicNumber | '20' is a magic number. | 178 |
![]() |
blocks | LeftCurly | '{' should have line break after. | 179 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 179 |
![]() |
blocks | RightCurly | '}' should have line break before. | 179 |
![]() |
whitespace | WhitespaceAround | 'catch' is not followed by whitespace. | 180 |
![]() |
whitespace | OperatorWrap | '+' should be on a new line. | 181 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 183 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 184 |
![]() |
whitespace | OperatorWrap | '+' should be on a new line. | 186 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 188 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 189 |
![]() |
whitespace | OperatorWrap | '?' should be on a new line. | 191 |
![]() |
coding | AvoidInlineConditionals | Avoid inline conditionals. | 191 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 200 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 211 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 212 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 214 |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 215 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 216 |
![]() |
misc | FinalParameters | Parameter request should be final. | 216 |
![]() |
misc | FinalParameters | Parameter response should be final. | 217 |
![]() |
blocks | LeftCurly | '{' should have line break after. | 221 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 221 |
![]() |
blocks | RightCurly | '}' should have line break before. | 221 |
![]() |
whitespace | WhitespaceAround | 'catch' is not followed by whitespace. | 222 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 229 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 230 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 231 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 237 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 248 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 249 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 252 |
![]() |
javadoc | JavadocType | Missing a Javadoc comment. | 253 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 254 |
![]() |
misc | FinalParameters | Parameter request should be final. | 254 |
![]() |
misc | FinalParameters | Parameter response should be final. | 255 |
![]() |
blocks | LeftCurly | '{' should have line break after. | 259 |
![]() |
blocks | RightCurly | '}' should be on the same line. | 259 |
![]() |
blocks | RightCurly | '}' should have line break before. | 259 |
![]() |
whitespace | WhitespaceAround | 'catch' is not followed by whitespace. | 260 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 267 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 268 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 271 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 276 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 287 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 288 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 290 |