The following document contains the results of PMD 5.3.5.
Violation | Line |
---|---|
Avoid unused imports such as 'org.opentrafficsim.road.gtu.lane.perception.LanePerception' | 32 |
Useless parentheses. | 257 |
Useless parentheses. | 257 |
Useless parentheses. | 258 |
Useless parentheses. | 258 |
These nested if statements could be combined | 328–348 |
These nested if statements could be combined | 389–409 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'network'. | 108 |
Avoid modifiers which are implied by the context | 327–328 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'position'. | 102 |
Avoid unused constructor parameters such as 'direction'. | 102 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 24 |
Violation | Line |
---|---|
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 632 |
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 648 |
Avoid empty catch blocks | 857–860 |
Avoid empty catch blocks | 872–875 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner' | 7 |
Violation | Line |
---|---|
Avoid unused private fields such as 'lookAhead'. | 95 |
Violation | Line |
---|---|
These nested if statements could be combined | 887–904 |
Useless parentheses. | 960 |
Useless parentheses. | 960 |
Useless parentheses. | 961 |
Useless parentheses. | 961 |
Violation | Line |
---|---|
Avoid unused local variables such as 'conflict'. | 102 |
Violation | Line |
---|---|
Useless parentheses. | 617 |
Useless parentheses. | 618–619 |
Avoid unused private methods such as 'forwardHeadway(Length)'. | 683 |
Avoid unused private methods such as 'backwardHeadway(Length)'. | 801 |
These nested if statements could be combined | 860–877 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.opentrafficsim.road.network.speed.SpeedLimitProspect' | 10 |
Violation | Line |
---|---|
Overriding method merely calls super | 35–38 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.management.RuntimeErrorException' | 8 |
Avoid unused local variables such as 'fromFirst'. | 395 |
Avoid unused local variables such as 'toFirst'. | 396 |
Violation | Line |
---|---|
Avoid unused local variables such as 'maximumReverseHeadway'. | 122 |
Avoid unused local variables such as 'now'. | 123 |
Avoid unused local variables such as 'currentLaneFine'. | 142 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypes' | 13 |
Violation | Line |
---|---|
Useless parentheses. | 156 |
Useless parentheses. | 157–160 |
Violation | Line |
---|---|
Avoid empty if statements | 171–185 |
Useless parentheses. | 485 |
Useless parentheses. | 486 |
Violation | Line |
---|---|
Avoid unused local variables such as 'e'. | 510 |
Violation | Line |
---|---|
Useless parentheses. | 166 |
Useless parentheses. | 167 |
Useless parentheses. | 181 |
Useless parentheses. | 182 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'newSimulator'. | 169 |
Avoid unused constructor parameters such as 'animation'. | 170 |
Violation | Line |
---|---|
Useless parentheses. | 472 |
Useless parentheses. | 475 |
Useless parentheses. | 486 |
Useless parentheses. | 488 |
These nested if statements could be combined | 491–495 |
These nested if statements could be combined | 528–532 |
Useless parentheses. | 641 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 66–83 |
Avoid modifiers which are implied by the context | 97–114 |
Avoid modifiers which are implied by the context | 126–143 |
Avoid modifiers which are implied by the context | 155–172 |
Avoid modifiers which are implied by the context | 184–201 |
Avoid modifiers which are implied by the context | 213–230 |
Avoid modifiers which are implied by the context | 242–259 |
Avoid modifiers which are implied by the context | 271–301 |
Avoid modifiers which are implied by the context | 313–343 |
Avoid modifiers which are implied by the context | 360–405 |
Useless parentheses. | 391–392 |
Avoid modifiers which are implied by the context | 422–467 |
Useless parentheses. | 453–454 |
Avoid modifiers which are implied by the context | 484–539 |
Useless parentheses. | 522–523 |
Useless parentheses. | 522–523 |
Avoid modifiers which are implied by the context | 556–611 |
Useless parentheses. | 594–595 |
Useless parentheses. | 594–595 |
Violation | Line |
---|---|
Avoid unused private fields such as 'upSensor'. | 32 |
Avoid unused private fields such as 'downSensor'. | 35 |
Avoid unused private fields such as 'length'. | 38 |
Avoid unused private fields such as 'currentGTUs'. | 41 |
Avoid empty if statements | 130–132 |
Avoid empty if statements | 139–141 |