Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
8 0 0 240

Rules

Category Rule Violations Severity
blocks EmptyBlock 1  Error
RightCurly 17  Error
coding HiddenField 9  Error
MagicNumber 1  Error
design DesignForExtension 37  Error
VisibilityModifier 4  Error
javadoc JavadocMethod 47  Error
JavadocPackage 2  Error
JavadocType 6  Error
JavadocVariable 13  Error
misc FinalParameters 33  Error
naming ConstantName 2  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
38  Error
sizes LineLength 7  Error
whitespace FileTabCharacter 3  Error
WhitespaceAfter 5  Error
WhitespaceAround 15  Error

Details

ejava/examples/ejbsessionbank/dto/OwnerDTO.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error javadoc JavadocType Missing a Javadoc comment. 5
 Error javadoc JavadocVariable Missing a Javadoc comment. 6
 Error javadoc JavadocVariable Missing a Javadoc comment. 7
 Error javadoc JavadocVariable Missing a Javadoc comment. 8
 Error javadoc JavadocVariable Missing a Javadoc comment. 9
 Error javadoc JavadocVariable Missing a Javadoc comment. 10
 Error javadoc JavadocMethod Missing a Javadoc comment. 12
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 12
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 12
 Error javadoc JavadocMethod Missing a Javadoc comment. 13
 Error misc FinalParameters Parameter id should be final. 13
 Error coding HiddenField 'id' hides a field. 13
 Error javadoc JavadocMethod Missing a Javadoc comment. 16
 Error misc FinalParameters Parameter id should be final. 16
 Error coding HiddenField 'id' hides a field. 16
 Error misc FinalParameters Parameter firstName should be final. 16
 Error coding HiddenField 'firstName' hides a field. 16
 Error misc FinalParameters Parameter lastName should be final. 16
 Error coding HiddenField 'lastName' hides a field. 16
 Error misc FinalParameters Parameter accounts should be final. 16
 Error coding HiddenField 'accounts' hides a field. 16
 Error regexp RegexpSingleline Line has trailing spaces. 22
 Error design DesignForExtension Method 'getId' is not designed for extension - needs to be abstract, final or empty. 23
 Error javadoc JavadocMethod Missing a Javadoc comment. 23
 Error design DesignForExtension Method 'setId' 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 id should be final. 26
 Error coding HiddenField 'id' hides a field. 26
 Error design DesignForExtension Method 'getFirstName' is not designed for extension - needs to be abstract, final or empty. 29
 Error javadoc JavadocMethod Missing a Javadoc comment. 29
 Error design DesignForExtension Method 'setFirstName' is not designed for extension - needs to be abstract, final or empty. 32
 Error javadoc JavadocMethod Missing a Javadoc comment. 32
 Error misc FinalParameters Parameter firstName should be final. 32
 Error coding HiddenField 'firstName' hides a field. 32
 Error design DesignForExtension Method 'getLastName' is not designed for extension - needs to be abstract, final or empty. 35
 Error javadoc JavadocMethod Missing a Javadoc comment. 35
 Error design DesignForExtension Method 'setLastName' is not designed for extension - needs to be abstract, final or empty. 38
 Error javadoc JavadocMethod Missing a Javadoc comment. 38
 Error misc FinalParameters Parameter lastName should be final. 38
 Error coding HiddenField 'lastName' hides a field. 38
 Error design DesignForExtension Method 'getAccounts' is not designed for extension - needs to be abstract, final or empty. 41
 Error javadoc JavadocMethod Missing a Javadoc comment. 41
 Error design DesignForExtension Method 'setAccounts' 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 accounts should be final. 44
 Error coding HiddenField 'accounts' hides a field. 44
 Error regexp RegexpSingleline Line has trailing spaces. 47
 Error design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 48
 Error javadoc JavadocMethod Missing a Javadoc comment. 48

ejava/examples/ejbsessionbank/ejb/Stats.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 3
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 4
 Error javadoc JavadocMethod Missing a Javadoc comment. 4
 Error javadoc JavadocMethod Missing a Javadoc comment. 5
 Error javadoc JavadocMethod Missing a Javadoc comment. 6
 Error javadoc JavadocMethod Missing a Javadoc comment. 7
 Error javadoc JavadocMethod Missing a Javadoc comment. 8

ejava/examples/ejbsessionbank/ejb/StatsEJB.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 24
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 28
 Error coding MagicNumber '3000' is a magic number. 28
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 28
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 30
 Error javadoc JavadocVariable Missing a Javadoc comment. 30
 Error naming ConstantName Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 30
 Error javadoc JavadocVariable Missing a Javadoc comment. 31
 Error javadoc JavadocVariable Missing a Javadoc comment. 32
 Error regexp RegexpSingleline Line has trailing spaces. 33
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 34
 Error javadoc JavadocMethod Missing a Javadoc comment. 34
 Error design DesignForExtension Method 'open' is not designed for extension - needs to be abstract, final or empty. 43
 Error sizes LineLength Line is longer than 80 characters (found 83). 48
 Error regexp RegexpSingleline Line has trailing spaces. 50
 Error design DesignForExtension Method 'close' is not designed for extension - needs to be abstract, final or empty. 51
 Error sizes LineLength Line is longer than 80 characters (found 84). 56
 Error regexp RegexpSingleline Line has trailing spaces. 57
 Error regexp RegexpSingleline Line has trailing spaces. 58
 Error design DesignForExtension Method 'getTotal' is not designed for extension - needs to be abstract, final or empty. 63
 Error sizes LineLength Line is longer than 80 characters (found 87). 66
 Error design DesignForExtension Method 'getDelta' is not designed for extension - needs to be abstract, final or empty. 70
 Error sizes LineLength Line is longer than 80 characters (found 87). 73
 Error regexp RegexpSingleline Line has trailing spaces. 76
 Error design DesignForExtension Method 'reset' is not designed for extension - needs to be abstract, final or empty. 77
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 80
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 80
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 81
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 81
 Error sizes LineLength Line is longer than 80 characters (found 84). 82

ejava/examples/ejbsessionbank/ejb/StatsLocal.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 5

ejava/examples/ejbsessionbank/ejb/StatsRemote.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 5

ejava/examples/ejbsessionbank/ejb/TellerEJB.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 33
 Error regexp RegexpSingleline Line has trailing spaces. 34
 Error regexp RegexpSingleline Line has trailing spaces. 39
 Error javadoc JavadocVariable Missing a Javadoc comment. 45
 Error naming ConstantName Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 45
 Error javadoc JavadocVariable Missing a Javadoc comment. 47
 Error design VisibilityModifier Variable 'ctx' must be private and have accessor methods. 48
 Error regexp RegexpSingleline Line has trailing spaces. 49
 Error regexp RegexpSingleline Line has trailing spaces. 50
 Error regexp RegexpSingleline Line has trailing spaces. 52
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 53
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 53
 Error design VisibilityModifier Variable 'em' must be private and have accessor methods. 54
 Error regexp RegexpSingleline Line has trailing spaces. 55
 Error javadoc JavadocVariable Missing a Javadoc comment. 56
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 56
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 56
 Error design VisibilityModifier Variable 'daoClassName' must be private and have accessor methods. 57
 Error regexp RegexpSingleline Line has trailing spaces. 58
 Error javadoc JavadocVariable Missing a Javadoc comment. 59
 Error javadoc JavadocVariable Missing a Javadoc comment. 62
 Error design VisibilityModifier Variable 'teller' must be private and have accessor methods. 62
 Error regexp RegexpSingleline Line has trailing spaces. 63
 Error regexp RegexpSingleline Line has trailing spaces. 66
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 69
 Error regexp RegexpSingleline Line has trailing spaces. 73
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 75
 Error regexp RegexpSingleline Line has trailing spaces. 78
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 79
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 80
 Error regexp RegexpSingleline Line has trailing spaces. 81
 Error regexp RegexpSingleline Line has trailing spaces. 83
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 83
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 84
 Error blocks RightCurly '}' should be on the same line. 85
 Error regexp RegexpSingleline Line has trailing spaces. 88
 Error regexp RegexpSingleline Line has trailing spaces. 91
 Error regexp RegexpSingleline Line has trailing spaces. 95
 Error regexp RegexpSingleline Line has trailing spaces. 96
 Error design DesignForExtension Method 'close' is not designed for extension - needs to be abstract, final or empty. 100
 Error design DesignForExtension Method 'createAccount' is not designed for extension - needs to be abstract, final or empty. 106
 Error javadoc JavadocMethod Missing a Javadoc comment. 106
 Error misc FinalParameters Parameter accountNumber should be final. 106
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 109
 Error blocks RightCurly '}' should be on the same line. 112
 Error regexp RegexpSingleline Line has trailing spaces. 119
 Error design DesignForExtension Method 'closeAccount' is not designed for extension - needs to be abstract, final or empty. 120
 Error javadoc JavadocMethod Missing a Javadoc comment. 120
 Error misc FinalParameters Parameter acctNum should be final. 120
 Error blocks RightCurly '}' should be on the same line. 126
 Error design DesignForExtension Method 'getAccount' is not designed for extension - needs to be abstract, final or empty. 134
 Error javadoc JavadocMethod Missing a Javadoc comment. 134
 Error misc FinalParameters Parameter acctNum should be final. 134
 Error blocks RightCurly '}' should be on the same line. 138
 Error sizes LineLength Line is longer than 80 characters (found 90). 146
 Error design DesignForExtension Method 'getOverdrawnAccounts' is not designed for extension - needs to be abstract, final or empty. 146
 Error javadoc JavadocMethod Missing a Javadoc comment. 146
 Error misc FinalParameters Parameter index should be final. 146
 Error misc FinalParameters Parameter count should be final. 146
 Error blocks RightCurly '}' should be on the same line. 150
 Error sizes LineLength Line is longer than 80 characters (found 81). 158
 Error design DesignForExtension Method 'getAccounts' is not designed for extension - needs to be abstract, final or empty. 158
 Error javadoc JavadocMethod Missing a Javadoc comment. 158
 Error misc FinalParameters Parameter index should be final. 158
 Error misc FinalParameters Parameter count should be final. 158
 Error blocks RightCurly '}' should be on the same line. 162
 Error design DesignForExtension Method 'updateAccount' is not designed for extension - needs to be abstract, final or empty. 170
 Error javadoc JavadocMethod Missing a Javadoc comment. 170
 Error misc FinalParameters Parameter account should be final. 170
 Error blocks RightCurly '}' should be on the same line. 175
 Error design DesignForExtension Method 'getLedger' is not designed for extension - needs to be abstract, final or empty. 183
 Error javadoc JavadocMethod Missing a Javadoc comment. 183
 Error regexp RegexpSingleline Line has trailing spaces. 189
 Error blocks RightCurly '}' should be on the same line. 191
 Error javadoc JavadocMethod Expected an @return tag. 204
 Error design DesignForExtension Method 'getLedger2' is not designed for extension - needs to be abstract, final or empty. 204
 Error javadoc JavadocMethod Expected @throws tag for 'BankException'. 204
 Error blocks RightCurly '}' should be on the same line. 208
 Error regexp RegexpSingleline Line has trailing spaces. 215
 Error regexp RegexpSingleline Line has trailing spaces. 217
 Error javadoc JavadocMethod Expected an @return tag. 220
 Error design DesignForExtension Method 'getLedgerAveBalance' is not designed for extension - needs to be abstract, final or empty. 220
 Error javadoc JavadocMethod Expected @throws tag for 'BankException'. 220
 Error blocks RightCurly '}' should be on the same line. 224
 Error regexp RegexpSingleline Line has trailing spaces. 234
 Error javadoc JavadocMethod Expected an @return tag. 237
 Error design DesignForExtension Method 'getLedgerCount' is not designed for extension - needs to be abstract, final or empty. 237
 Error javadoc JavadocMethod Expected @throws tag for 'BankException'. 237
 Error blocks RightCurly '}' should be on the same line. 241
 Error regexp RegexpSingleline Line has trailing spaces. 251
 Error javadoc JavadocMethod Expected an @return tag. 254
 Error design DesignForExtension Method 'getLedgerSum' is not designed for extension - needs to be abstract, final or empty. 254
 Error javadoc JavadocMethod Expected @throws tag for 'BankException'. 254
 Error blocks RightCurly '}' should be on the same line. 258
 Error regexp RegexpSingleline Line has trailing spaces. 266
 Error javadoc JavadocMethod Missing a Javadoc comment. 267
 Error blocks EmptyBlock Must have at least one statement. 268
 Error regexp RegexpSingleline Line has trailing spaces. 272
 Error design DesignForExtension Method 'addOwner' is not designed for extension - needs to be abstract, final or empty. 276
 Error javadoc JavadocMethod Missing a Javadoc comment. 276
 Error misc FinalParameters Parameter ownerId should be final. 276
 Error misc FinalParameters Parameter accountNumber should be final. 276
 Error blocks RightCurly '}' should be on the same line. 281
 Error design DesignForExtension Method 'createOwner' is not designed for extension - needs to be abstract, final or empty. 289
 Error javadoc JavadocMethod Missing a Javadoc comment. 289
 Error misc FinalParameters Parameter firstName should be final. 289
 Error misc FinalParameters Parameter lastName should be final. 289
 Error misc FinalParameters Parameter ssn should be final. 289
 Error blocks RightCurly '}' should be on the same line. 294
 Error design DesignForExtension Method 'openAccount' is not designed for extension - needs to be abstract, final or empty. 302
 Error javadoc JavadocMethod Missing a Javadoc comment. 302
 Error misc FinalParameters Parameter ownerId should be final. 302
 Error misc FinalParameters Parameter accountNumber should be final. 302
 Error blocks RightCurly '}' should be on the same line. 307
 Error design DesignForExtension Method 'removeOwner' is not designed for extension - needs to be abstract, final or empty. 315
 Error javadoc JavadocMethod Missing a Javadoc comment. 315
 Error misc FinalParameters Parameter ownerId should be final. 315
 Error blocks RightCurly '}' should be on the same line. 319
 Error design DesignForExtension Method 'getOwners' is not designed for extension - needs to be abstract, final or empty. 327
 Error javadoc JavadocMethod Missing a Javadoc comment. 327
 Error misc FinalParameters Parameter index should be final. 327
 Error misc FinalParameters Parameter count should be final. 327
 Error blocks RightCurly '}' should be on the same line. 331
 Error regexp RegexpSingleline Line has trailing spaces. 339
 Error design DesignForExtension Method 'getOwnersLoaded' is not designed for extension - needs to be abstract, final or empty. 339
 Error javadoc JavadocMethod Missing a Javadoc comment. 339
 Error misc FinalParameters Parameter index should be final. 339
 Error misc FinalParameters Parameter count should be final. 339
 Error whitespace WhitespaceAround 'for' is not followed by whitespace. 342
 Error regexp RegexpSingleline Line has trailing spaces. 349
 Error regexp RegexpSingleline Line has trailing spaces. 350
 Error design DesignForExtension Method 'getOwnersPOJO' is not designed for extension - needs to be abstract, final or empty. 350
 Error javadoc JavadocMethod Missing a Javadoc comment. 350
 Error misc FinalParameters Parameter index should be final. 350
 Error misc FinalParameters Parameter count should be final. 350
 Error whitespace WhitespaceAround 'for' is not followed by whitespace. 353
 Error regexp RegexpSingleline Line has trailing spaces. 369
 Error design DesignForExtension Method 'getOwnersDTO' is not designed for extension - needs to be abstract, final or empty. 369
 Error javadoc JavadocMethod Missing a Javadoc comment. 369
 Error misc FinalParameters Parameter index should be final. 369
 Error misc FinalParameters Parameter count should be final. 369
 Error whitespace WhitespaceAround 'for' is not followed by whitespace. 372
 Error design DesignForExtension Method 'whoAmI' is not designed for extension - needs to be abstract, final or empty. 382

ejava/examples/ejbsessionbank/ejb/TellerLocal.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error javadoc JavadocType Missing a Javadoc comment. 7

ejava/examples/ejbsessionbank/ejb/TellerRemote.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 13
 Error javadoc JavadocMethod Missing a Javadoc comment. 15
 Error javadoc JavadocMethod Missing a Javadoc comment. 16
 Error javadoc JavadocMethod Missing a Javadoc comment. 17
 Error javadoc JavadocMethod Missing a Javadoc comment. 18
 Error javadoc JavadocMethod Missing a Javadoc comment. 19