The following document contains the results of PMD 6.46.0.
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 58 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 244 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 267 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 288 |
| CollapsibleIfStatements | These nested if statements could be combined | 385–388 |
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 65 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 277 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 300 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 321 |
| CollapsibleIfStatements | These nested if statements could be combined | 418–421 |
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty if statement | 402–417 |
| EmptyControlStatement | Empty if statement | 406–417 |
| EmptyControlStatement | Empty if statement | 410–417 |
| EmptyControlStatement | Empty if statement | 414–417 |
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'gtuColorer'. | 94 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 163 |
| CollapsibleIfStatements | These nested if statements could be combined | 187–190 |
| EmptyCatchBlock | Avoid empty catch blocks | 309–312 |
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'showAnimationClass': the method is already in a final class | 109–112 |
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class | 119–122 |
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 4 |
| UnnecessaryImport | Unused import 'javax.naming.NamingException' | 6 |
| UnnecessaryImport | Unused import 'org.opentrafficsim.core.network.NetworkException' | 15 |
| UnnecessaryImport | Unused import 'org.opentrafficsim.draw.road.TrafficLightAnimation' | 16 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 3 | 58 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 3 | 244 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 267 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 288 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 385–388 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 3 | 65 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 3 | 277 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 300 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 321 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 418–421 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 402–417 |
| EmptyControlStatement | Empty if statement | 3 | 406–417 |
| EmptyControlStatement | Empty if statement | 3 | 410–417 |
| EmptyControlStatement | Empty if statement | 3 | 414–417 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'gtuColorer'. | 3 | 94 |
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 163 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 187–190 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 309–312 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'showAnimationClass': the method is already in a final class | 3 | 109–112 |
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class | 3 | 119–122 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 4 | 4 |
| UnnecessaryImport | Unused import 'javax.naming.NamingException' | 4 | 6 |
| UnnecessaryImport | Unused import 'org.opentrafficsim.core.network.NetworkException' | 4 | 15 |
| UnnecessaryImport | Unused import 'org.opentrafficsim.draw.road.TrafficLightAnimation' | 4 | 16 |