Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
9 0 0 308

Rules

Category Rule Violations Severity
blocks EmptyBlock 2  Error
LeftCurly 9  Error
RightCurly 7  Error
coding HiddenField 6  Error
design DesignForExtension 33  Error
VisibilityModifier 1  Error
javadoc JavadocMethod 31  Error
JavadocPackage 2  Error
JavadocType 8  Error
JavadocVariable 17  Error
misc FinalParameters 31  Error
naming ConstantName 3  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
85  Error
sizes LineLength 23  Error
whitespace WhitespaceAfter 2  Error
WhitespaceAround 48  Error

Details

info/ejava/examples/ejb/ejbjpa/dto/FloorDTO.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error javadoc JavadocType 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 regexp RegexpSingleline Line has trailing spaces. 11
 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 level should be final. 13
 Error coding HiddenField 'level' hides a field. 13
 Error regexp RegexpSingleline Line has trailing spaces. 16
 Error regexp RegexpSingleline Line has trailing spaces. 17
 Error design DesignForExtension Method 'getLevel' is not designed for extension - needs to be abstract, final or empty. 18
 Error blocks LeftCurly '{' should have line break after. 18
 Error design DesignForExtension Method 'setLevel' is not designed for extension - needs to be abstract, final or empty. 19
 Error javadoc JavadocMethod Missing a Javadoc comment. 19
 Error misc FinalParameters Parameter level should be final. 19
 Error coding HiddenField 'level' hides a field. 19
 Error regexp RegexpSingleline Line has trailing spaces. 22
 Error design DesignForExtension Method 'getRooms' is not designed for extension - needs to be abstract, final or empty. 23
 Error blocks LeftCurly '{' should have line break after. 23
 Error design DesignForExtension Method 'setRooms' is not designed for extension - needs to be abstract, final or empty. 24
 Error javadoc JavadocMethod Missing a Javadoc comment. 24
 Error misc FinalParameters Parameter rooms should be final. 24
 Error coding HiddenField 'rooms' hides a field. 24
 Error design DesignForExtension Method 'withRoom' is not designed for extension - needs to be abstract, final or empty. 27
 Error javadoc JavadocMethod Missing a Javadoc comment. 27
 Error misc FinalParameters Parameter room should be final. 27
 Error design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 36
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 41
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 41
 Error blocks LeftCurly '{' should have line break after. 41
 Error whitespace WhitespaceAround '}' is not followed by whitespace. 43
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 43
 Error blocks RightCurly '}' should be on a new line. 43
 Error regexp RegexpSingleline Line has trailing spaces. 47
 Error regexp RegexpSingleline Line has trailing spaces. 48
 Error regexp RegexpSingleline Line has trailing spaces. 49

info/ejava/examples/ejb/ejbjpa/dto/RoomDTO.java

Severity Category Rule Message Line
 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 regexp RegexpSingleline Line has trailing spaces. 9
 Error javadoc JavadocMethod Missing a Javadoc comment. 10
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 10
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 10
 Error javadoc JavadocMethod Missing a Javadoc comment. 11
 Error misc FinalParameters Parameter number should be final. 11
 Error coding HiddenField 'number' hides a field. 11
 Error regexp RegexpSingleline Line has trailing spaces. 14
 Error design DesignForExtension Method 'getNumber' is not designed for extension - needs to be abstract, final or empty. 15
 Error blocks LeftCurly '{' should have line break after. 15
 Error design DesignForExtension Method 'setNumber' is not designed for extension - needs to be abstract, final or empty. 16
 Error javadoc JavadocMethod Missing a Javadoc comment. 16
 Error misc FinalParameters Parameter number should be final. 16
 Error coding HiddenField 'number' hides a field. 16
 Error regexp RegexpSingleline Line has trailing spaces. 19
 Error design DesignForExtension Method 'isOccupied' is not designed for extension - needs to be abstract, final or empty. 20
 Error blocks LeftCurly '{' should have line break after. 20
 Error design DesignForExtension Method 'setOccupied' is not designed for extension - needs to be abstract, final or empty. 21
 Error javadoc JavadocMethod Missing a Javadoc comment. 21
 Error misc FinalParameters Parameter occupied should be final. 21
 Error coding HiddenField 'occupied' hides a field. 21
 Error regexp RegexpSingleline Line has trailing spaces. 24
 Error design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 25

info/ejava/examples/ejb/ejbjpa/ejb/HotelInitEJB.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 22
 Error sizes LineLength Line is longer than 80 characters (found 84). 22
 Error sizes LineLength Line is longer than 80 characters (found 85). 28
 Error javadoc JavadocVariable Missing a Javadoc comment. 28
 Error naming ConstantName Name 'logger' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 28
 Error regexp RegexpSingleline Line has trailing spaces. 29
 Error sizes LineLength Line is longer than 80 characters (found 88). 32
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 35
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 35
 Error regexp RegexpSingleline Line has trailing spaces. 37
 Error javadoc JavadocVariable Missing a Javadoc comment. 38
 Error design VisibilityModifier Variable 'hotelMgmt' must be private and have accessor methods. 39
 Error regexp RegexpSingleline Line has trailing spaces. 40
 Error regexp RegexpSingleline Line has trailing spaces. 46
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 47
 Error javadoc JavadocMethod Missing a Javadoc comment. 47
 Error regexp RegexpSingleline Line has trailing spaces. 54
 Error design DesignForExtension Method 'clearAll' is not designed for extension - needs to be abstract, final or empty. 55
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 58
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 58
 Error sizes LineLength Line is longer than 80 characters (found 84). 63
 Error blocks RightCurly '}' should be on the same line. 73
 Error blocks EmptyBlock Must have at least one statement. 74
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 74
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 74
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 76
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 76
 Error design DesignForExtension Method 'populate' is not designed for extension - needs to be abstract, final or empty. 82
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 85
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 85
 Error sizes LineLength Line is longer than 80 characters (found 84). 90
 Error blocks RightCurly '}' should be on the same line. 100
 Error blocks EmptyBlock Must have at least one statement. 101
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 101
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 101
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 103
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 103

info/ejava/examples/ejb/ejbjpa/ejb/HotelInitRemote.java

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

info/ejava/examples/ejb/ejbjpa/ejb/HotelMgmtEJB.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error javadoc JavadocType Missing a Javadoc comment. 30
 Error sizes LineLength Line is longer than 80 characters (found 85). 33
 Error javadoc JavadocVariable Missing a Javadoc comment. 33
 Error naming ConstantName Name 'logger' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 33
 Error javadoc JavadocVariable Missing a Javadoc comment. 35
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 35
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 35
 Error regexp RegexpSingleline Line has trailing spaces. 37
 Error sizes LineLength Line is longer than 80 characters (found 348). 37
 Error javadoc JavadocVariable Missing a Javadoc comment. 37
 Error regexp RegexpSingleline Line has trailing spaces. 38
 Error javadoc JavadocVariable Missing a Javadoc comment. 38
 Error regexp RegexpSingleline Line has trailing spaces. 39
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 40
 Error javadoc JavadocMethod Missing a Javadoc comment. 40
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 44
 Error regexp RegexpSingleline Line has trailing spaces. 45
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 47
 Error design DesignForExtension Method 'destroy' is not designed for extension - needs to be abstract, final or empty. 50
 Error javadoc JavadocMethod Missing a Javadoc comment. 50
 Error design DesignForExtension Method 'getRoom' is not designed for extension - needs to be abstract, final or empty. 55
 Error misc FinalParameters Parameter number should be final. 57
 Error design DesignForExtension Method 'getFloor' is not designed for extension - needs to be abstract, final or empty. 61
 Error regexp RegexpSingleline Line has trailing spaces. 62
 Error misc FinalParameters Parameter level should be final. 63
 Error design DesignForExtension Method 'getTouchedFloor' is not designed for extension - needs to be abstract, final or empty. 67
 Error regexp RegexpSingleline Line has trailing spaces. 68
 Error misc FinalParameters Parameter level should be final. 69
 Error regexp RegexpSingleline Line has trailing spaces. 73
 Error regexp RegexpSingleline Line has trailing spaces. 75
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 79
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 79
 Error regexp RegexpSingleline Line has trailing spaces. 80
 Error sizes LineLength Line is longer than 80 characters (found 84). 80
 Error regexp RegexpSingleline Line has trailing spaces. 88
 Error regexp RegexpSingleline Line has trailing spaces. 90
 Error regexp RegexpSingleline Line has trailing spaces. 92
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 98
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 98
 Error sizes LineLength Line is longer than 80 characters (found 93). 99
 Error regexp RegexpSingleline Line has trailing spaces. 103
 Error regexp RegexpSingleline Line has trailing spaces. 105
 Error regexp RegexpSingleline Line has trailing spaces. 111
 Error regexp RegexpSingleline Line has trailing spaces. 113
 Error design DesignForExtension Method 'getFetchedFloor' is not designed for extension - needs to be abstract, final or empty. 123
 Error regexp RegexpSingleline Line has trailing spaces. 124
 Error misc FinalParameters Parameter level should be final. 125
 Error regexp RegexpSingleline Line has trailing spaces. 136
 Error regexp RegexpSingleline Line has trailing spaces. 138
 Error regexp RegexpSingleline Line has trailing spaces. 140
 Error regexp RegexpSingleline Line has trailing spaces. 141
 Error regexp RegexpSingleline Line has trailing spaces. 143
 Error regexp RegexpSingleline Line has trailing spaces. 144
 Error regexp RegexpSingleline Line has trailing spaces. 146
 Error regexp RegexpSingleline Line has trailing spaces. 151
 Error design DesignForExtension Method 'getFetchedFloorDTO' is not designed for extension - needs to be abstract, final or empty. 152
 Error regexp RegexpSingleline Line has trailing spaces. 153
 Error regexp RegexpSingleline Line has trailing spaces. 154
 Error misc FinalParameters Parameter level should be final. 154
 Error regexp RegexpSingleline Line has trailing spaces. 157
 Error regexp RegexpSingleline Line has trailing spaces. 158
 Error regexp RegexpSingleline Line has trailing spaces. 160
 Error regexp RegexpSingleline Line has trailing spaces. 162
 Error regexp RegexpSingleline Line has trailing spaces. 166
 Error regexp RegexpSingleline Line has trailing spaces. 167
 Error regexp RegexpSingleline Line has trailing spaces. 170
 Error regexp RegexpSingleline Line has trailing spaces. 171
 Error regexp RegexpSingleline Line has trailing spaces. 173
 Error regexp RegexpSingleline Line has trailing spaces. 175
 Error regexp RegexpSingleline Line has trailing spaces. 180
 Error regexp RegexpSingleline Line has trailing spaces. 181
 Error javadoc JavadocMethod Missing a Javadoc comment. 182
 Error misc FinalParameters Parameter floor should be final. 182
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 183
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 183
 Error blocks LeftCurly '{' should have line break after. 183
 Error blocks RightCurly '}' should have line break before. 183
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 185
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 185
 Error blocks LeftCurly '{' should have line break after. 185
 Error whitespace WhitespaceAround '}' is not followed by whitespace. 187
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 187
 Error blocks RightCurly '}' should be on a new line. 187
 Error regexp RegexpSingleline Line has trailing spaces. 190
 Error javadoc JavadocMethod Missing a Javadoc comment. 191
 Error misc FinalParameters Parameter room should be final. 191
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 192
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 192
 Error blocks LeftCurly '{' should have line break after. 192
 Error blocks RightCurly '}' should have line break before. 192
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 195
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 195
 Error design DesignForExtension Method 'getFloors' is not designed for extension - needs to be abstract, final or empty. 199
 Error regexp RegexpSingleline Line has trailing spaces. 200
 Error misc FinalParameters Parameter offset should be final. 201
 Error misc FinalParameters Parameter limit should be final. 201
 Error design DesignForExtension Method 'getAvailableRooms' is not designed for extension - needs to be abstract, final or empty. 205
 Error regexp RegexpSingleline Line has trailing spaces. 206
 Error misc FinalParameters Parameter level should be final. 207
 Error misc FinalParameters Parameter offset should be final. 207
 Error misc FinalParameters Parameter limit should be final. 207
 Error design DesignForExtension Method 'getCleanAvailableRooms' is not designed for extension - needs to be abstract, final or empty. 211
 Error regexp RegexpSingleline Line has trailing spaces. 212
 Error sizes LineLength Line is longer than 80 characters (found 84). 213
 Error misc FinalParameters Parameter level should be final. 213
 Error misc FinalParameters Parameter offset should be final. 213
 Error misc FinalParameters Parameter limit should be final. 213
 Error regexp RegexpSingleline Line has trailing spaces. 220
 Error sizes LineLength Line is longer than 80 characters (found 83). 220
 Error javadoc JavadocMethod Expected an @return tag. 223
 Error misc FinalParameters Parameter rooms should be final. 223
 Error javadoc JavadocMethod Expected @param tag for 'rooms'. 223
 Error whitespace WhitespaceAround '==' is not preceded with whitespace. 224
 Error whitespace WhitespaceAround '==' is not followed by whitespace. 224
 Error blocks LeftCurly '{' should have line break after. 224
 Error blocks RightCurly '}' should have line break before. 224
 Error regexp RegexpSingleline Line has trailing spaces. 229
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 232
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 232
 Error regexp RegexpSingleline Line has trailing spaces. 241
 Error regexp RegexpSingleline Line has trailing spaces. 243
 Error design DesignForExtension Method 'getAvailableRoomsForUpdate' is not designed for extension - needs to be abstract, final or empty. 246
 Error regexp RegexpSingleline Line has trailing spaces. 247
 Error sizes LineLength Line is longer than 80 characters (found 88). 248
 Error misc FinalParameters Parameter level should be final. 248
 Error misc FinalParameters Parameter offset should be final. 248
 Error misc FinalParameters Parameter limit should be final. 248
 Error design DesignForExtension Method 'checkIn' is not designed for extension - needs to be abstract, final or empty. 252
 Error regexp RegexpSingleline Line has trailing spaces. 253
 Error sizes LineLength Line is longer than 80 characters (found 81). 254
 Error misc FinalParameters Parameter guest should be final. 254
 Error misc FinalParameters Parameter room should be final. 254
 Error design DesignForExtension Method 'checkout' is not designed for extension - needs to be abstract, final or empty. 259
 Error regexp RegexpSingleline Line has trailing spaces. 260
 Error misc FinalParameters Parameter guest should be final. 261

info/ejava/examples/ejb/ejbjpa/ejb/HotelMgmtLocal.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 10
 Error javadoc JavadocMethod Missing a Javadoc comment. 12

info/ejava/examples/ejb/ejbjpa/ejb/HotelMgmtRemote.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 12
 Error regexp RegexpSingleline Line has trailing spaces. 15
 Error javadoc JavadocMethod Expected @param tag for 'level'. 22
 Error javadoc JavadocMethod Expected @param tag for 'offser'. 22
 Error javadoc JavadocMethod Expected @param tag for 'limit'. 22
 Error regexp RegexpSingleline Line has trailing spaces. 30
 Error regexp RegexpSingleline Line has trailing spaces. 31
 Error javadoc JavadocMethod Expected @param tag for 'level'. 33
 Error javadoc JavadocMethod Expected @param tag for 'level'. 41
 Error regexp RegexpSingleline Line has trailing spaces. 44
 Error regexp RegexpSingleline Line has trailing spaces. 45
 Error javadoc JavadocMethod Expected @param tag for 'level'. 50

info/ejava/examples/ejb/ejbjpa/ejb/ReservationEJB.java

Severity Category Rule Message Line
 Error javadoc JavadocType Missing a Javadoc comment. 28
 Error sizes LineLength Line is longer than 80 characters (found 87). 30
 Error javadoc JavadocVariable Missing a Javadoc comment. 30
 Error naming ConstantName Name 'logger' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 30
 Error regexp RegexpSingleline Line has trailing spaces. 31
 Error sizes LineLength Line is longer than 80 characters (found 86). 32
 Error javadoc JavadocVariable Missing a Javadoc comment. 32
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 32
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 32
 Error whitespace WhitespaceAround '=' is not preceded with whitespace. 32
 Error whitespace WhitespaceAround '=' is not followed by whitespace. 32
 Error regexp RegexpSingleline Line has trailing spaces. 34
 Error javadoc JavadocVariable Missing a Javadoc comment. 35
 Error regexp RegexpSingleline Line has trailing spaces. 37
 Error javadoc JavadocVariable Missing a Javadoc comment. 38
 Error regexp RegexpSingleline Line has trailing spaces. 40
 Error javadoc JavadocVariable Missing a Javadoc comment. 41
 Error design DesignForExtension Method 'init' is not designed for extension - needs to be abstract, final or empty. 43
 Error javadoc JavadocMethod Missing a Javadoc comment. 43
 Error regexp RegexpSingleline Line has trailing spaces. 47
 Error design DesignForExtension Method 'destroy' is not designed for extension - needs to be abstract, final or empty. 48
 Error javadoc JavadocMethod Missing a Javadoc comment. 48
 Error regexp RegexpSingleline Line has trailing spaces. 52
 Error design DesignForExtension Method 'addGuest' is not designed for extension - needs to be abstract, final or empty. 53
 Error misc FinalParameters Parameter guest should be final. 55
 Error whitespace WhitespaceAround '!=' is not preceded with whitespace. 57
 Error whitespace WhitespaceAround '!=' is not followed by whitespace. 57
 Error sizes LineLength Line is longer than 80 characters (found 89). 64
 Error design DesignForExtension Method 'reserveRooms' is not designed for extension - needs to be abstract, final or empty. 64
 Error javadoc JavadocMethod Missing a Javadoc comment. 64
 Error misc FinalParameters Parameter rooms should be final. 64
 Error sizes LineLength Line is longer than 80 characters (found 86). 65
 Error regexp RegexpSingleline Line has trailing spaces. 68
 Error sizes LineLength Line is longer than 80 characters (found 94). 68
 Error sizes LineLength Line is longer than 80 characters (found 82). 73
 Error sizes LineLength Line is longer than 80 characters (found 96). 79
 Error sizes LineLength Line is longer than 80 characters (found 96). 80
 Error regexp RegexpSingleline Line has trailing spaces. 90
 Error regexp RegexpSingleline Line has trailing spaces. 91
 Error design DesignForExtension Method 'reserveRooms' is not designed for extension - needs to be abstract, final or empty. 92
 Error regexp RegexpSingleline Line has trailing spaces. 96
 Error regexp RegexpSingleline Line has trailing spaces. 100
 Error regexp RegexpSingleline Line has trailing spaces. 101
 Error design DesignForExtension Method 'reserveRoomsPessimistic' is not designed for extension - needs to be abstract, final or empty. 102
 Error sizes LineLength Line is longer than 80 characters (found 81). 105
 Error regexp RegexpSingleline Line has trailing spaces. 106
 Error sizes LineLength Line is longer than 80 characters (found 88). 107

info/ejava/examples/ejb/ejbjpa/ejb/ReservationRemote.java

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