The following document contains the results of Checkstyle 8.29 with sun_checks.xml ruleset.
Files | ![]() |
![]() |
![]() |
---|---|---|---|
7 | 0 | 0 | 138 |
File | ![]() |
![]() |
![]() |
---|---|---|---|
ordertracker/App.java | 0 | 0 | 9 |
ordertracker/AppTest.java | 0 | 0 | 56 |
ordertracker/DepotBehaviour.java | 0 | 0 | 7 |
ordertracker/EventService.java | 0 | 0 | 8 |
ordertracker/OrderBehaviour.java | 0 | 0 | 46 |
ordertracker/StateDiagramViewerMain.java | 0 | 0 | 3 |
ordertracker/SystemEventBehaviour.java | 0 | 0 | 9 |
Category | Rule | Violations | Severity |
---|---|---|---|
blocks | NeedBraces | 8 | ![]() |
coding | HiddenField | 3 | ![]() |
MagicNumber | 13 | ![]() | |
design | DesignForExtension | 20 | ![]() |
HideUtilityClassConstructor | 2 | ![]() | |
VisibilityModifier | 1 | ![]() | |
javadoc | JavadocPackage | 2 | ![]() |
JavadocVariable | 8 | ![]() | |
MissingJavadocMethod | 14 | ![]() | |
misc | FinalParameters | 32 | ![]() |
NewlineAtEndOfFile | 2 | ![]() | |
naming | ConstantName | 1 | ![]() |
sizes | LineLength
|
32 | ![]() |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 8 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 10 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 12 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 17 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 21 |
![]() |
coding | MagicNumber | '-35.0' is a magic number. | 34 |
![]() |
coding | MagicNumber | '142.0' is a magic number. | 34 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 39 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 30 |
![]() |
naming | ConstantName | Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 30 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 32 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 32 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 34 |
![]() |
blocks | NeedBraces | 'for' construct must use '{}'s. | 37 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 94). | 37 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 95). | 39 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 88). | 41 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 48 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 53 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 57 |
![]() |
misc | FinalParameters | Parameter event should be final. | 59 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 85). | 64 |
![]() |
coding | MagicNumber | '3' is a magic number. | 65 |
![]() |
coding | MagicNumber | '5000' is a magic number. | 66 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 69 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 99). | 72 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 73 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 95). | 74 |
![]() |
blocks | NeedBraces | 'for' construct must use '{}'s. | 76 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 91). | 80 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 87 |
![]() |
coding | MagicNumber | '-35.0' is a magic number. | 87 |
![]() |
coding | MagicNumber | '142.0' is a magic number. | 87 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 88 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 89 |
![]() |
coding | MagicNumber | '3' is a magic number. | 89 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 112 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 99). | 115 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 116 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 100). | 117 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 91). | 118 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 91). | 120 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 121 |
![]() |
blocks | NeedBraces | 'for' construct must use '{}'s. | 124 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 91). | 128 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 133 |
![]() |
coding | MagicNumber | '3' is a magic number. | 134 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 83). | 135 |
![]() |
coding | MagicNumber | '-35.0' is a magic number. | 135 |
![]() |
coding | MagicNumber | '142.0' is a magic number. | 135 |
![]() |
misc | FinalParameters | Parameter states should be final. | 166 |
![]() |
blocks | NeedBraces | 'for' construct must use '{}'s. | 168 |
![]() |
misc | FinalParameters | Parameter latches should be final. | 173 |
![]() |
misc | FinalParameters | Parameter expectedStates should be final. | 174 |
![]() |
misc | FinalParameters | Parameter states should be final. | 174 |
![]() |
misc | FinalParameters | Parameter index should be final. | 174 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 96). | 177 |
![]() |
coding | MagicNumber | '120' is a magic number. | 178 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 180 |
![]() |
design | VisibilityModifier | Variable 'count' must be private and have accessor methods. | 187 |
![]() |
misc | FinalParameters | Parameter e should be final. | 194 |
![]() |
misc | FinalParameters | Parameter state should be final. | 199 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 7 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 9 |
![]() |
misc | FinalParameters | Parameter self should be final. | 9 |
![]() |
coding | HiddenField | 'self' hides a field. | 9 |
![]() |
design | DesignForExtension | Class 'DepotBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryCreated' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DepotBehaviour' final or making the method 'onEntryCreated' static/final/abstract/empty, or adding allowed annotation for the method. | 13 |
![]() |
misc | FinalParameters | Parameter event should be final. | 14 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 100). | 16 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 8 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 10 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 12 |
![]() |
design | DesignForExtension | Class 'EventService' looks like designed for extension (can be subclassed), but the method 'event' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'EventService' final or making the method 'event' static/final/abstract/empty, or adding allowed annotation for the method. | 16 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 16 |
![]() |
misc | FinalParameters | Parameter data should be final. | 16 |
![]() |
design | DesignForExtension | Class 'EventService' looks like designed for extension (can be subclassed), but the method 'events' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'EventService' final or making the method 'events' static/final/abstract/empty, or adding allowed annotation for the method. | 20 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 20 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 26 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 28 |
![]() |
misc | FinalParameters | Parameter self should be final. | 28 |
![]() |
coding | HiddenField | 'self' hides a field. | 28 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryPreparing' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryPreparing' static/final/abstract/empty, or adding allowed annotation for the method. | 32 |
![]() |
misc | FinalParameters | Parameter event should be final. | 33 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryReadyForDispatch' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryReadyForDispatch' static/final/abstract/empty, or adding allowed annotation for the method. | 46 |
![]() |
misc | FinalParameters | Parameter event should be final. | 47 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryCourierAssigned' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryCourierAssigned' static/final/abstract/empty, or adding allowed annotation for the method. | 51 |
![]() |
misc | FinalParameters | Parameter event should be final. | 52 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryInTransit' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryInTransit' static/final/abstract/empty, or adding allowed annotation for the method. | 56 |
![]() |
misc | FinalParameters | Parameter event should be final. | 57 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryInTransit' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryInTransit' static/final/abstract/empty, or adding allowed annotation for the method. | 61 |
![]() |
misc | FinalParameters | Parameter event should be final. | 62 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 64 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 86). | 65 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryReadyForDelivery' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryReadyForDelivery' static/final/abstract/empty, or adding allowed annotation for the method. | 72 |
![]() |
misc | FinalParameters | Parameter event should be final. | 73 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 75 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 86). | 76 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryDelivering' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryDelivering' static/final/abstract/empty, or adding allowed annotation for the method. | 83 |
![]() |
misc | FinalParameters | Parameter event should be final. | 84 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryDelivered' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryDelivered' static/final/abstract/empty, or adding allowed annotation for the method. | 89 |
![]() |
misc | FinalParameters | Parameter event should be final. | 90 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryDeliveryFailed' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryDeliveryFailed' static/final/abstract/empty, or adding allowed annotation for the method. | 96 |
![]() |
misc | FinalParameters | Parameter event should be final. | 97 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 99 |
![]() |
blocks | NeedBraces | 'else' construct must use '{}'s. | 101 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryAwaitingNextDeliveryAttempt' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryAwaitingNextDeliveryAttempt' static/final/abstract/empty, or adding allowed annotation for the method. | 105 |
![]() |
misc | FinalParameters | Parameter event should be final. | 106 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 107 |
![]() |
coding | MagicNumber | '12' is a magic number. | 107 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryHeldForPickup' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryHeldForPickup' static/final/abstract/empty, or adding allowed annotation for the method. | 111 |
![]() |
misc | FinalParameters | Parameter event should be final. | 112 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryHeldForPickup' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryHeldForPickup' static/final/abstract/empty, or adding allowed annotation for the method. | 116 |
![]() |
misc | FinalParameters | Parameter event should be final. | 117 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 99). | 122 |
![]() |
coding | MagicNumber | '14' is a magic number. | 122 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryReturnToSender' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryReturnToSender' static/final/abstract/empty, or adding allowed annotation for the method. | 126 |
![]() |
misc | FinalParameters | Parameter event should be final. | 127 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryDelivered' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryDelivered' static/final/abstract/empty, or adding allowed annotation for the method. | 132 |
![]() |
misc | FinalParameters | Parameter event should be final. | 133 |
![]() |
misc | FinalParameters | Parameter state should be final. | 137 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 94). | 139 |
![]() |
design | DesignForExtension | Class 'OrderBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryReadyForDelivery' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'OrderBehaviour' final or making the method 'onEntryReadyForDelivery' static/final/abstract/empty, or adding allowed annotation for the method. | 142 |
![]() |
misc | FinalParameters | Parameter event should be final. | 143 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 7 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 9 |
![]() |
misc | FinalParameters | Parameter args should be final. | 9 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 8 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 10 |
![]() |
misc | FinalParameters | Parameter self should be final. | 10 |
![]() |
coding | HiddenField | 'self' hides a field. | 10 |
![]() |
design | DesignForExtension | Class 'SystemEventBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryCreated' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'SystemEventBehaviour' final or making the method 'onEntryCreated' static/final/abstract/empty, or adding allowed annotation for the method. | 14 |
![]() |
misc | FinalParameters | Parameter event should be final. | 15 |
![]() |
design | DesignForExtension | Class 'SystemEventBehaviour' looks like designed for extension (can be subclassed), but the method 'onEntryCreated' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'SystemEventBehaviour' final or making the method 'onEntryCreated' static/final/abstract/empty, or adding allowed annotation for the method. | 19 |
![]() |
misc | FinalParameters | Parameter event should be final. | 20 |