Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
3 0 0 219

Rules

Category Rule Violations Severity
blocks EmptyBlock 2  Error
LeftCurly 5  Error
RightCurly 14  Error
coding AvoidInlineConditionals 3  Error
MagicNumber 2  Error
SimplifyBooleanExpression 1  Error
design DesignForExtension 10  Error
imports UnusedImports
  • processJavadoc: "false"
1  Error
javadoc JavadocMethod 21  Error
JavadocPackage 1  Error
JavadocType 9  Error
JavadocVariable 9  Error
misc FinalParameters 28  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
66  Error
sizes LineLength 6  Error
whitespace OperatorWrap 4  Error
WhitespaceAfter 6  Error
WhitespaceAround 31  Error

Details

ejava/examples/webtier/web/JPADAOInit.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error javadoc JavadocType Missing a Javadoc comment. 19
 Error javadoc JavadocVariable Missing a Javadoc comment. 21
 Error regexp RegexpSingleline Line has trailing spaces. 22
 Error javadoc JavadocVariable Missing a Javadoc comment. 23
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 23
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 23
 Error regexp RegexpSingleline Line has trailing spaces. 25
 Error regexp RegexpSingleline Line has trailing spaces. 26
 Error design DesignForExtension Method 'doGet' is not designed for extension - needs to be abstract, final or empty. 26
 Error javadoc JavadocMethod Missing a Javadoc comment. 26
 Error misc FinalParameters Parameter request should be final. 26
 Error regexp RegexpSingleline Line has trailing spaces. 27
 Error misc FinalParameters Parameter response should be final. 27
 Error regexp RegexpSingleline Line has trailing spaces. 29
 Error whitespace WhitespaceAfter ',' is not followed by whitespace. 33
 Error whitespace WhitespaceAfter ',' is not followed by whitespace. 34
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 35
 Error regexp RegexpSingleline Line has trailing spaces. 37
 Error regexp RegexpSingleline Line has trailing spaces. 39

ejava/examples/webtier/web/JPAFilter.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - java.util.HashMap. 4
 Error javadoc JavadocType Missing a Javadoc comment. 25
 Error javadoc JavadocVariable Missing a Javadoc comment. 26
 Error javadoc JavadocVariable Missing a Javadoc comment. 27
 Error javadoc JavadocVariable Missing a Javadoc comment. 28
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 28
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 28
 Error javadoc JavadocVariable Missing a Javadoc comment. 29
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 29
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 29
 Error javadoc JavadocVariable Missing a Javadoc comment. 31
 Error regexp RegexpSingleline Line has trailing spaces. 32
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 33
 Error javadoc JavadocMethod Missing a Javadoc comment. 33
 Error misc FinalParameters Parameter config should be final. 33
 Error sizes LineLength Line is longer than 80 characters (found 86). 35
 Error regexp RegexpSingleline Line has trailing spaces. 36
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 37
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 37
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 40
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 40
 Error regexp RegexpSingleline Line has trailing spaces. 42
 Error regexp RegexpSingleline Line has trailing spaces. 44
 Error design DesignForExtension Method 'doFilter' is not designed for extension - needs to be abstract, final or empty. 44
 Error javadoc JavadocMethod Missing a Javadoc comment. 44
 Error misc FinalParameters Parameter request should be final. 44
 Error regexp RegexpSingleline Line has trailing spaces. 45
 Error misc FinalParameters Parameter response should be final. 45
 Error misc FinalParameters Parameter chain should be final. 46
 Error regexp RegexpSingleline Line has trailing spaces. 47
 Error regexp RegexpSingleline Line has trailing spaces. 49
 Error regexp RegexpSingleline Line has trailing spaces. 56
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 60
 Error coding SimplifyBooleanExpression Expression can be simplified. 60
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 60
 Error blocks RightCurly '}' at column 13 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 63
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 68
 Error regexp RegexpSingleline Line has trailing spaces. 72
 Error regexp RegexpSingleline Line has trailing spaces. 73
 Error design DesignForExtension Method 'destroy' is not designed for extension - needs to be abstract, final or empty. 76
 Error javadoc JavadocMethod Missing a Javadoc comment. 76
 Error javadoc JavadocMethod Missing a Javadoc comment. 82
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 84
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 84
 Error regexp RegexpSingleline Line has trailing spaces. 90
 Error javadoc JavadocMethod Missing a Javadoc comment. 91
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 93
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 93
 Error regexp RegexpSingleline Line has trailing spaces. 96
 Error regexp RegexpSingleline Line has trailing spaces. 98
 Error javadoc JavadocMethod Missing a Javadoc comment. 99
 Error regexp RegexpSingleline Line has trailing spaces. 102
 Error javadoc JavadocMethod Missing a Javadoc comment. 103
 Error misc FinalParameters Parameter context should be final. 104
 Error misc FinalParameters Parameter name should be final. 104
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 108
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 109
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 109
 Error regexp RegexpSingleline Line has trailing spaces. 113
 Error sizes LineLength Line is longer than 80 characters (found 85). 113
 Error javadoc JavadocMethod Missing a Javadoc comment. 113
 Error misc FinalParameters Parameter level should be final. 113
 Error misc FinalParameters Parameter text should be final. 113
 Error misc FinalParameters Parameter context should be final. 113
 Error misc FinalParameters Parameter name should be final. 113
 Error sizes LineLength Line is longer than 80 characters (found 87). 115
 Error whitespace WhitespaceAround '+' is not followed by whitespace. 121
 Error sizes LineLength Line is longer than 80 characters (found 81). 124
 Error regexp RegexpSingleline Line has trailing spaces. 128
 Error design DesignForExtension Method 'isContext' is not designed for extension - needs to be abstract, final or empty. 129
 Error javadoc JavadocMethod Missing a Javadoc comment. 129
 Error misc FinalParameters Parameter className should be final. 129
 Error sizes LineLength Line is longer than 80 characters (found 81). 131
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 134
 Error design DesignForExtension Method 'getPad' is not designed for extension - needs to be abstract, final or empty. 141
 Error javadoc JavadocMethod Missing a Javadoc comment. 141
 Error misc FinalParameters Parameter level should be final. 141

ejava/examples/webtier/web/RegistrarHandlerServlet.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 26
 Error sizes LineLength Line is longer than 80 characters (found 83). 28
 Error javadoc JavadocVariable Missing a Javadoc comment. 28
 Error javadoc JavadocVariable Missing a Javadoc comment. 29
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 31
 Error javadoc JavadocMethod Missing a Javadoc comment. 31
 Error regexp RegexpSingleline Line has trailing spaces. 32
 Error regexp RegexpSingleline Line has trailing spaces. 34
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 42
 Error blocks EmptyBlock Must have at least one statement. 43
 Error regexp RegexpSingleline Line has trailing spaces. 44
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 45
 Error blocks EmptyBlock Must have at least one statement. 46
 Error regexp RegexpSingleline Line has trailing spaces. 47
 Error regexp RegexpSingleline Line has trailing spaces. 50
 Error javadoc JavadocMethod Expected an @return tag. 57
 Error design DesignForExtension Method 'getRegistrar' is not designed for extension - needs to be abstract, final or empty. 57
 Error whitespace WhitespaceAfter 'typecast' is not followed by whitespace. 60
 Error whitespace WhitespaceAfter 'typecast' is not followed by whitespace. 62
 Error regexp RegexpSingleline Line has trailing spaces. 65
 Error design DesignForExtension Method 'doGet' is not designed for extension - needs to be abstract, final or empty. 66
 Error javadoc JavadocMethod Missing a Javadoc comment. 66
 Error misc FinalParameters Parameter request should be final. 66
 Error misc FinalParameters Parameter response should be final. 67
 Error regexp RegexpSingleline Line has trailing spaces. 68
 Error blocks RightCurly '}' at column 13 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 74
 Error blocks RightCurly '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 80
 Error regexp RegexpSingleline Line has trailing spaces. 87
 Error design DesignForExtension Method 'doPost' is not designed for extension - needs to be abstract, final or empty. 90
 Error javadoc JavadocMethod Missing a Javadoc comment. 90
 Error misc FinalParameters Parameter request should be final. 90
 Error misc FinalParameters Parameter response should be final. 91
 Error javadoc JavadocType Missing a Javadoc comment. 95
 Error javadoc JavadocMethod Missing a Javadoc comment. 96
 Error regexp RegexpSingleline Line has trailing spaces. 100
 Error javadoc JavadocType Missing a Javadoc comment. 101
 Error javadoc JavadocMethod Missing a Javadoc comment. 102
 Error misc FinalParameters Parameter request should be final. 102
 Error misc FinalParameters Parameter response should be final. 103
 Error regexp RegexpSingleline Line has trailing spaces. 108
 Error regexp RegexpSingleline Line has trailing spaces. 114
 Error regexp RegexpSingleline Line has trailing spaces. 125
 Error regexp RegexpSingleline Line has trailing spaces. 126
 Error regexp RegexpSingleline Line has trailing spaces. 128
 Error javadoc JavadocType Missing a Javadoc comment. 129
 Error javadoc JavadocMethod Missing a Javadoc comment. 130
 Error misc FinalParameters Parameter request should be final. 130
 Error misc FinalParameters Parameter response should be final. 131
 Error coding MagicNumber '100' is a magic number. 134
 Error blocks LeftCurly '{' at column 17 should have line break after. 135
 Error blocks RightCurly '}' at column 55 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 135
 Error whitespace WhitespaceAround 'catch' is not followed by whitespace. 136
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 136
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 136
 Error regexp RegexpSingleline Line has trailing spaces. 137
 Error whitespace WhitespaceAround 'for' is not followed by whitespace. 141
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 141
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 141
 Error whitespace WhitespaceAround '<' is not preceded with whitespace. 141
 Error whitespace WhitespaceAround '<' is not followed by whitespace. 141
 Error regexp RegexpSingleline Line has trailing spaces. 156
 Error regexp RegexpSingleline Line has trailing spaces. 167
 Error regexp RegexpSingleline Line has trailing spaces. 168
 Error regexp RegexpSingleline Line has trailing spaces. 171
 Error javadoc JavadocType Missing a Javadoc comment. 172
 Error javadoc JavadocMethod Missing a Javadoc comment. 173
 Error misc FinalParameters Parameter request should be final. 173
 Error misc FinalParameters Parameter response should be final. 174
 Error whitespace WhitespaceAfter 'typecast' is not followed by whitespace. 178
 Error coding AvoidInlineConditionals Avoid inline conditionals. 179
 Error whitespace WhitespaceAfter 'typecast' is not followed by whitespace. 180
 Error coding AvoidInlineConditionals Avoid inline conditionals. 181
 Error regexp RegexpSingleline Line has trailing spaces. 182
 Error regexp RegexpSingleline Line has trailing spaces. 186
 Error blocks LeftCurly '{' at column 17 should have line break after. 188
 Error blocks RightCurly '}' at column 55 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 188
 Error whitespace WhitespaceAround 'catch' is not followed by whitespace. 189
 Error whitespace OperatorWrap '+' should be on a new line. 190
 Error coding MagicNumber '20' is a magic number. 193
 Error blocks LeftCurly '{' at column 17 should have line break after. 194
 Error blocks RightCurly '}' at column 55 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 194
 Error whitespace WhitespaceAround 'catch' is not followed by whitespace. 195
 Error whitespace OperatorWrap '+' should be on a new line. 196
 Error regexp RegexpSingleline Line has trailing spaces. 198
 Error regexp RegexpSingleline Line has trailing spaces. 199
 Error whitespace OperatorWrap '+' should be on a new line. 201
 Error regexp RegexpSingleline Line has trailing spaces. 203
 Error regexp RegexpSingleline Line has trailing spaces. 204
 Error whitespace OperatorWrap '?' should be on a new line. 206
 Error coding AvoidInlineConditionals Avoid inline conditionals. 206
 Error regexp RegexpSingleline Line has trailing spaces. 215
 Error regexp RegexpSingleline Line has trailing spaces. 226
 Error regexp RegexpSingleline Line has trailing spaces. 227
 Error regexp RegexpSingleline Line has trailing spaces. 229
 Error javadoc JavadocType Missing a Javadoc comment. 230
 Error javadoc JavadocMethod Missing a Javadoc comment. 231
 Error misc FinalParameters Parameter request should be final. 231
 Error misc FinalParameters Parameter response should be final. 232
 Error blocks LeftCurly '{' at column 17 should have line break after. 236
 Error blocks RightCurly '}' at column 47 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 236
 Error whitespace WhitespaceAround 'catch' is not followed by whitespace. 237
 Error regexp RegexpSingleline Line has trailing spaces. 244
 Error regexp RegexpSingleline Line has trailing spaces. 245
 Error regexp RegexpSingleline Line has trailing spaces. 246
 Error regexp RegexpSingleline Line has trailing spaces. 252
 Error regexp RegexpSingleline Line has trailing spaces. 263
 Error regexp RegexpSingleline Line has trailing spaces. 264
 Error regexp RegexpSingleline Line has trailing spaces. 267
 Error javadoc JavadocType Missing a Javadoc comment. 268
 Error javadoc JavadocMethod Missing a Javadoc comment. 269
 Error misc FinalParameters Parameter request should be final. 269
 Error misc FinalParameters Parameter response should be final. 270
 Error blocks LeftCurly '{' at column 17 should have line break after. 274
 Error blocks RightCurly '}' at column 47 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 274
 Error whitespace WhitespaceAround 'catch' is not followed by whitespace. 275
 Error regexp RegexpSingleline Line has trailing spaces. 282
 Error regexp RegexpSingleline Line has trailing spaces. 283
 Error regexp RegexpSingleline Line has trailing spaces. 286
 Error regexp RegexpSingleline Line has trailing spaces. 291
 Error regexp RegexpSingleline Line has trailing spaces. 302
 Error regexp RegexpSingleline Line has trailing spaces. 303
 Error regexp RegexpSingleline Line has trailing spaces. 305