The following document contains the results of Checkstyle 6.18 with development/dsol-checks.xml ruleset.
Category | Rule | Violations | Severity |
---|---|---|---|
coding | HiddenField
|
1 | ![]() |
InnerAssignment | 1 | ![]() | |
MissingSwitchDefault | 2 | ![]() | |
design | DesignForExtension | 34 | ![]() |
VisibilityModifier | 28 | ![]() | |
javadoc | JavadocMethod | 4 | ![]() |
JavadocStyle
|
5 | ![]() | |
misc | FinalParameters | 62 | ![]() |
modifier | ModifierOrder | 35 | ![]() |
RedundantModifier | 21 | ![]() | |
naming | ConstantName | 2 | ![]() |
StaticVariableName | 3 | ![]() | |
sizes | FileLength | 1 | ![]() |
LineLength
|
1 | ![]() | |
MethodLength | 3 | ![]() | |
whitespace | WhitespaceAfter | 1 | ![]() |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'id' must be private and have accessor methods. | 25 |
![]() |
design | DesignForExtension | Method 'getId' is not designed for extension - needs to be abstract, final or empty. | 43 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 21 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | DesignForExtension | Method 'clone' is not designed for extension - needs to be abstract, final or empty. | 120 |
![]() |
design | DesignForExtension | Method 'getFullId' is not designed for extension - needs to be abstract, final or empty. | 141 |
![]() |
design | DesignForExtension | Method 'toString' is not designed for extension - needs to be abstract, final or empty. | 148 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 131). | 157 |
![]() |
design | DesignForExtension | Method 'getId' is not designed for extension - needs to be abstract, final or empty. | 244 |
![]() |
design | DesignForExtension | Method 'startup' is not designed for extension - needs to be abstract, final or empty. | 257 |
![]() |
javadoc | JavadocMethod | Expected @param tag for 'controllerOffset'. | 257 |
![]() |
javadoc | JavadocMethod | Expected @param tag for 'cycleTime'. | 257 |
![]() |
javadoc | JavadocMethod | Expected @param tag for 'sim'. | 257 |
![]() |
javadoc | JavadocMethod | Expected @param tag for 'network'. | 258 |
![]() |
design | DesignForExtension | Method 'clone' is not designed for extension - needs to be abstract, final or empty. | 372 |
![]() |
design | DesignForExtension | Method 'hashCode' is not designed for extension - needs to be abstract, final or empty. | 380 |
![]() |
design | DesignForExtension | Method 'equals' is not designed for extension - needs to be abstract, final or empty. | 390 |
![]() |
misc | FinalParameters | Parameter obj should be final. | 391 |
![]() |
design | DesignForExtension | Method 'toString' is not designed for extension - needs to be abstract, final or empty. | 477 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 29 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 32 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 35 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 38 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 41 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 44 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 47 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 47 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 79 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'id' must be private and have accessor methods. | 49 |
![]() |
design | VisibilityModifier | Variable 'simulator' must be private and have accessor methods. | 52 |
![]() |
naming | StaticVariableName | Name 'PORT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 55 |
![]() |
design | VisibilityModifier | Variable 'PORT' must be private and have accessor methods. | 55 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 58 |
![]() |
design | VisibilityModifier | Variable 'serverSocket' must be private and have accessor methods. | 61 |
![]() |
design | VisibilityModifier | Variable 'acceptThread' must be private and have accessor methods. | 73 |
![]() |
design | DesignForExtension | Method 'setClientSocket' is not designed for extension - needs to be abstract, final or empty. | 129 |
![]() |
design | DesignForExtension | Method 'getClientSocket' is not designed for extension - needs to be abstract, final or empty. | 161 |
![]() |
design | DesignForExtension | Method 'notify' is not designed for extension - needs to be abstract, final or empty. | 192 |
![]() |
misc | FinalParameters | Parameter event should be final. | 193 |
![]() |
design | DesignForExtension | Method 'getId' is not designed for extension - needs to be abstract, final or empty. | 227 |
![]() |
design | DesignForExtension | Method 'getFullId' is not designed for extension - needs to be abstract, final or empty. | 234 |
![]() |
design | DesignForExtension | Method 'updateDetector' is not designed for extension - needs to be abstract, final or empty. | 241 |
![]() |
design | DesignForExtension | Method 'clone' is not designed for extension - needs to be abstract, final or empty. | 250 |
![]() |
misc | FinalParameters | Parameter newSimulator should be final. | 251 |
![]() |
misc | FinalParameters | Parameter newNetwork should be final. | 251 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 48 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 51 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 54 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 57 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 60 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 63 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 66 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 69 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 72 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 75 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 78 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 81 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 84 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 87 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 90 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 93 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 96 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 99 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 102 |
![]() |
design | VisibilityModifier | Variable 'streams' must be private and have accessor methods. | 105 |
![]() |
design | VisibilityModifier | Variable 'routes' must be private and have accessor methods. | 108 |
![]() |
misc | FinalParameters | Parameter o1 should be final. | 122 |
![]() |
misc | FinalParameters | Parameter o2 should be final. | 122 |
![]() |
whitespace | WhitespaceAfter | ',' is not followed by whitespace. | 141 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 278 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 310 |
![]() |
coding | MissingSwitchDefault | switch without "default" clause. | 333 |
![]() |
coding | MissingSwitchDefault | switch without "default" clause. | 355 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 398 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 401 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 404 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 407 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 414 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 430 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 451 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 468 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 540 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 550 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 561 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 628 |
![]() |
misc | FinalParameters | Parameter steps should be final. | 634 |
![]() |
coding | InnerAssignment | Inner assignments should be avoided. | 638 |
![]() |
design | DesignForExtension | Method 'render' is not designed for extension - needs to be abstract, final or empty. | 715 |
![]() |
misc | FinalParameters | Parameter e should be final. | 863 |
![]() |
design | VisibilityModifier | Variable 'testPanel' must be private and have accessor methods. | 872 |
![]() |
design | VisibilityModifier | Variable 'checkBoxPanel' must be private and have accessor methods. | 875 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | FileLength | File length is 2,908 lines (max allowed is 2,000). | 1 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 73 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 76 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 79 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 82 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 85 |
![]() |
design | VisibilityModifier | Variable 'trafcodRules' must be private and have accessor methods. | 88 |
![]() |
design | VisibilityModifier | Variable 'tokenisedRules' must be private and have accessor methods. | 91 |
![]() |
design | VisibilityModifier | Variable 'variables' must be private and have accessor methods. | 94 |
![]() |
design | VisibilityModifier | Variable 'variablesInDefinitionOrder' must be private and have accessor methods. | 97 |
![]() |
design | VisibilityModifier | Variable 'detectors' must be private and have accessor methods. | 100 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 103 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 106 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 109 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 112 |
![]() |
design | VisibilityModifier | Variable 'numberOfConflictGroups' must be private and have accessor methods. | 115 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 138 |
![]() |
misc | FinalParameters | Parameter controllerName should be final. | 159 |
![]() |
misc | FinalParameters | Parameter display should be final. | 160 |
![]() |
misc | FinalParameters | Parameter controllerName should be final. | 227 |
![]() |
misc | FinalParameters | Parameter display should be final. | 227 |
![]() |
sizes | MethodLength | Method length is 159 lines (max allowed is 150). | 261 |
![]() |
design | DesignForExtension | Method 'checkConsistency' is not designed for extension - needs to be abstract, final or empty. | 428 |
![]() |
sizes | MethodLength | Method length is 155 lines (max allowed is 150). | 428 |
![]() |
naming | StaticVariableName | Name 'BIND_UNARY_MINUS' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 993 |
![]() |
misc | FinalParameters | Parameter tokens should be final. | 1249 |
![]() |
sizes | MethodLength | Method length is 271 lines (max allowed is 150). | 1461 |
![]() |
misc | FinalParameters | Parameter name should be final. | 1774 |
![]() |
misc | FinalParameters | Parameter stream should be final. | 1774 |
![]() |
misc | FinalParameters | Parameter flags should be final. | 1774 |
![]() |
misc | FinalParameters | Parameter location should be final. | 1774 |
![]() |
design | DesignForExtension | Method 'getSimulator' is not designed for extension - needs to be abstract, final or empty. | 1812 |
![]() |
design | DesignForExtension | Method 'getStructureNumber' is not designed for extension - needs to be abstract, final or empty. | 1821 |
![]() |
design | DesignForExtension | Method 'updateDetector' is not designed for extension - needs to be abstract, final or empty. | 1827 |
![]() |
misc | FinalParameters | Parameter detectorId should be final. | 1828 |
![]() |
misc | FinalParameters | Parameter detectingGTU should be final. | 1828 |
![]() |
design | DesignForExtension | Method 'traceVariablesOfStream' is not designed for extension - needs to be abstract, final or empty. | 1845 |
![]() |
design | DesignForExtension | Method 'traceVariable' is not designed for extension - needs to be abstract, final or empty. | 1870 |
![]() |
design | DesignForExtension | Method 'notify' is not designed for extension - needs to be abstract, final or empty. | 1889 |
![]() |
misc | FinalParameters | Parameter event should be final. | 1890 |
![]() |
design | DesignForExtension | Method 'fireTrafCODEvent' is not designed for extension - needs to be abstract, final or empty. | 1959 |
![]() |
design | DesignForExtension | Method 'getFullId' is not designed for extension - needs to be abstract, final or empty. | 1965 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 2051 |
![]() |
design | VisibilityModifier | Variable 'flags' must be private and have accessor methods. | 2178 |
![]() |
design | VisibilityModifier | Variable 'value' must be private and have accessor methods. | 2181 |
![]() |
design | VisibilityModifier | Variable 'timerMax10' must be private and have accessor methods. | 2184 |
![]() |
design | VisibilityModifier | Variable 'color' must be private and have accessor methods. | 2187 |
![]() |
design | VisibilityModifier | Variable 'name' must be private and have accessor methods. | 2190 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 2192 |
![]() |
design | VisibilityModifier | Variable 'stream' must be private and have accessor methods. | 2193 |
![]() |
design | VisibilityModifier | Variable 'refCount' must be private and have accessor methods. | 2196 |
![]() |
design | VisibilityModifier | Variable 'updateTime10' must be private and have accessor methods. | 2199 |
![]() |
design | VisibilityModifier | Variable 'startSource' must be private and have accessor methods. | 2202 |
![]() |
design | VisibilityModifier | Variable 'endSource' must be private and have accessor methods. | 2205 |
![]() |
naming | StaticVariableName | Name 'ROWLETTERS' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 2211 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 2250 |
![]() |
misc | FinalParameters | Parameter trafCOD should be final. | 2250 |
![]() |
misc | FinalParameters | Parameter sensor should be final. | 2284 |
![]() |
misc | FinalParameters | Parameter newValue should be final. | 2406 |
![]() |
misc | FinalParameters | Parameter timeStamp10 should be final. | 2406 |
![]() |
misc | FinalParameters | Parameter cause should be final. | 2406 |
![]() |
misc | FinalParameters | Parameter trafCOD should be final. | 2406 |
![]() |
coding | HiddenField | 'trafCOD' hides a field. | 2406 |
![]() |
misc | FinalParameters | Parameter colorValue should be final. | 2561 |
![]() |
misc | FinalParameters | Parameter value10 should be final. | 2610 |
![]() |
misc | FinalParameters | Parameter startSource should be final. | 2634 |
![]() |
misc | FinalParameters | Parameter endSource should be final. | 2658 |
![]() |
misc | FinalParameters | Parameter printFlags should be final. | 2689 |
![]() |
misc | FinalParameters | Parameter event should be final. | 2799 |
![]() |
design | VisibilityModifier | Variable 'cause' must be private and have accessor methods. | 2820 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 2826 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'defaultInitialDelay' must be private and have accessor methods. | 54 |
![]() |
design | DesignForExtension | Method 'getDetectorImage' is not designed for extension - needs to be abstract, final or empty. | 74 |
![]() |
design | DesignForExtension | Method 'paintComponent' is not designed for extension - needs to be abstract, final or empty. | 86 |
![]() |
design | DesignForExtension | Method 'addTrafCODObject' is not designed for extension - needs to be abstract, final or empty. | 101 |
![]() |
design | DesignForExtension | Method 'mouseDragged' is not designed for extension - needs to be abstract, final or empty. | 107 |
![]() |
misc | FinalParameters | Parameter e should be final. | 108 |
![]() |
design | DesignForExtension | Method 'mouseMoved' is not designed for extension - needs to be abstract, final or empty. | 114 |
![]() |
misc | FinalParameters | Parameter e should be final. | 115 |
![]() |
misc | FinalParameters | Parameter e should be final. | 132 |
![]() |
misc | FinalParameters | Parameter e should be final. | 139 |
![]() |
misc | FinalParameters | Parameter e should be final. | 146 |
![]() |
design | DesignForExtension | Method 'mouseEntered' is not designed for extension - needs to be abstract, final or empty. | 152 |
![]() |
misc | FinalParameters | Parameter e should be final. | 153 |
![]() |
design | DesignForExtension | Method 'mouseExited' is not designed for extension - needs to be abstract, final or empty. | 159 |
![]() |
misc | FinalParameters | Parameter e should be final. | 160 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 173 |
![]() |
naming | ConstantName | Name 'xOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 217 |
![]() |
naming | ConstantName | Name 'yOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 220 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 229 |
![]() |
misc | FinalParameters | Parameter center should be final. | 229 |
![]() |
misc | FinalParameters | Parameter id should be final. | 229 |
![]() |
misc | FinalParameters | Parameter description should be final. | 229 |
![]() |
misc | FinalParameters | Parameter g2 should be final. | 241 |
![]() |
misc | FinalParameters | Parameter event should be final. | 251 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 314 |
![]() |
misc | FinalParameters | Parameter testX should be final. | 325 |
![]() |
misc | FinalParameters | Parameter testY should be final. | 325 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 400 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 400 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 407 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 407 |
![]() |
misc | FinalParameters | Parameter weak should be final. | 407 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 414 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 414 |
![]() |
misc | FinalParameters | Parameter position should be final. | 414 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 421 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 421 |
![]() |
misc | FinalParameters | Parameter position should be final. | 421 |
![]() |
misc | FinalParameters | Parameter weak should be final. | 421 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 429 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 429 |
![]() |
misc | FinalParameters | Parameter trafficLightColor should be final. | 443 |
![]() |
misc | FinalParameters | Parameter g2 should be final. | 454 |