The following document contains the results of PMD 6.4.0.
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 207–210 |
Violation | Priority | Line |
---|---|---|
Avoid empty if statements | 3 | 71–73 |
Violation | Priority | Line |
---|---|---|
Useless qualified this usage in the same class. | 3 | 249 |
Useless qualified this usage in the same class. | 3 | 249 |
Useless qualified this usage in the same class. | 3 | 260 |
Useless qualified this usage in the same class. | 3 | 269 |
Useless qualified this usage in the same class. | 3 | 284 |
Useless qualified this usage in the same class. | 3 | 288 |
Useless qualified this usage in the same class. | 3 | 295 |
Useless qualified this usage in the same class. | 3 | 300 |
Useless qualified this usage in the same class. | 3 | 316 |
Violation | Priority | Line |
---|---|---|
Ensure you override both equals() and hashCode() | 3 | 218 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 286 |
Useless parentheses. | 4 | 286 |
Useless parentheses. | 4 | 287 |
Useless parentheses. | 4 | 287 |
These nested if statements could be combined | 3 | 355–375 |
These nested if statements could be combined | 3 | 415–435 |
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 55–58 |
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 292–295 |
Useless parentheses. | 4 | 843 |
Avoid modifiers which are implied by the context | 3 | 949–1009 |
Avoid modifiers which are implied by the context | 3 | 1023–1108 |
Useless parentheses. | 4 | 1052 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 290 |
Violation | Priority | Line |
---|---|---|
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 2 | 1243 |
Avoid empty catch blocks | 3 | 1340–1343 |
Avoid empty catch blocks | 3 | 1356–1359 |
Violation | Priority | Line |
---|---|---|
Ternary operators that can be simplified with || or && | 3 | 97 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 36 |
Violation | Priority | Line |
---|---|---|
Useless qualified this usage in the same class. | 3 | 115 |
Useless qualified this usage in the same class. | 3 | 117 |
Useless qualified this usage in the same class. | 3 | 118 |
Useless qualified this usage in the same class. | 3 | 122 |
Useless qualified this usage in the same class. | 3 | 123 |
Useless qualified this usage in the same class. | 3 | 232 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 104 |
These nested if statements could be combined | 3 | 122–126 |
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 63–82 |
Avoid modifiers which are implied by the context | 3 | 98–108 |
Avoid modifiers which are implied by the context | 3 | 124–132 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 477 |
Useless parentheses. | 4 | 1269 |
Useless parentheses. | 4 | 1270 |
Useless parentheses. | 4 | 1356 |
Useless parentheses. | 4 | 1357 |
Useless parentheses. | 4 | 1438 |
Useless parentheses. | 4 | 1439 |
Useless parentheses. | 4 | 1468 |
Useless parentheses. | 4 | 1469 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 342–343 |
These nested if statements could be combined | 3 | 342–348 |
Useless parentheses. | 4 | 344–345 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 75 |
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 23–37 |
Avoid modifiers which are implied by the context | 3 | 40–56 |
Avoid modifiers which are implied by the context | 3 | 59–85 |
Avoid modifiers which are implied by the context | 3 | 117–172 |
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 294–297 |
Avoid empty catch blocks | 3 | 329–332 |
Avoid unused method parameters such as 'egoSpeed'. | 3 | 401 |
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 750–753 |
These nested if statements could be combined | 3 | 883–900 |
Useless parentheses. | 4 | 952 |
Useless parentheses. | 4 | 952 |
Useless parentheses. | 4 | 953 |
Useless parentheses. | 4 | 953 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 416 |
Useless parentheses. | 4 | 416 |
Useless parentheses. | 4 | 431 |
Useless parentheses. | 4 | 431 |
Useless parentheses. | 4 | 444 |
Useless parentheses. | 4 | 444 |
Useless parentheses. | 4 | 448 |
Useless parentheses. | 4 | 448 |
Useless parentheses. | 4 | 459 |
Useless parentheses. | 4 | 459 |
Useless parentheses. | 4 | 657 |
Useless parentheses. | 4 | 658 |
Violation | Priority | Line |
---|---|---|
Ternary operators that can be simplified with || or && | 3 | 303 |
Ternary operators that can be simplified with || or && | 3 | 310 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 513–514 |
Useless parentheses. | 4 | 515–516 |
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 26–34 |
Avoid modifiers which are implied by the context | 3 | 37–57 |
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 31–46 |
Avoid modifiers which are implied by the context | 3 | 49–64 |
Useless parentheses. | 4 | 147 |
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'nFollowers'. | 3 | 40 |
Avoid unused private fields such as 'nLeaders'. | 3 | 43 |
Avoid unused private fields such as 'headwayGtuType'. | 3 | 61 |
Avoid unused local variables such as 'lane'. | 3 | 90 |
Violation | Priority | Line |
---|---|---|
Overriding method merely calls super | 3 | 35–38 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 46 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 89 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 41 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 55 |
Useless parentheses. | 4 | 146 |
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 352–364 |
Avoid modifiers which are implied by the context | 3 | 367–383 |
Useless parentheses. | 4 | 380 |
Avoid modifiers which are implied by the context | 3 | 386–402 |
Avoid modifiers which are implied by the context | 3 | 417–522 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 367 |
Avoid unused method parameters such as 'gtu'. | 3 | 404 |
Avoid unused method parameters such as 'startSpeed'. | 3 | 440 |
Useless parentheses. | 4 | 495 |
Useless parentheses. | 4 | 496 |
Violation | Priority | Line |
---|---|---|
Avoid unused local variables such as 'currentLaneFine'. | 3 | 154 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 236 |
These nested if statements could be combined | 3 | 238–245 |
Useless parentheses. | 4 | 266 |
Avoid unused method parameters such as 'perception'. | 3 | 507 |
Avoid unused method parameters such as 'lanePathInfo'. | 3 | 507 |
Useless parentheses. | 4 | 629 |
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 70–79 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 90 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 161 |
Useless parentheses. | 4 | 162–163 |
Avoid unused method parameters such as 'gtu'. | 3 | 715 |
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 484–500 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 41 |
Useless parentheses. | 4 | 42 |
Useless parentheses. | 4 | 77 |
Useless parentheses. | 4 | 78 |
Useless parentheses. | 4 | 115 |
Useless parentheses. | 4 | 116 |
Violation | Priority | Line |
---|---|---|
Ternary operators that can be simplified with || or && | 3 | 107 |
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 174–191 |
Useless parentheses. | 4 | 471 |
Useless parentheses. | 4 | 472 |
Violation | Priority | Line |
---|---|---|
Too many static imports may lead to messy code | 3 | 1–701 |
Useless parentheses. | 4 | 250 |
Ternary operators that can be simplified with || or && | 3 | 297–298 |
Useless parentheses. | 4 | 301–302 |
Ternary operators that can be simplified with || or && | 3 | 314–315 |
Useless parentheses. | 4 | 326 |
Useless parentheses. | 4 | 601 |
Useless parentheses. | 4 | 601 |
Avoid modifiers which are implied by the context | 3 | 635–641 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 199 |
Useless parentheses. | 4 | 200 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 223 |
Useless parentheses. | 4 | 224 |
Useless parentheses. | 4 | 239–240 |
Useless parentheses. | 4 | 241–242 |
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'newSimulator'. | 3 | 197 |
Avoid unused constructor parameters such as 'animation'. | 3 | 198 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 490–491 |
Useless parentheses. | 4 | 492–493 |
These nested if statements could be combined | 3 | 495–499 |
Useless parentheses. | 4 | 530–531 |
Useless parentheses. | 4 | 532–533 |
These nested if statements could be combined | 3 | 535–539 |
Useless parentheses. | 4 | 1447 |
Useless parentheses. | 4 | 1448 |
Useless parentheses. | 4 | 1474 |
Useless parentheses. | 4 | 1475 |
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'inverted'. | 3 | 125 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 531–532 |
Useless parentheses. | 4 | 603–604 |
Useless parentheses. | 4 | 603–604 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 170 |
Useless parentheses. | 4 | 171 |
These nested if statements could be combined | 3 | 688–696 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 370 |
Useless parentheses. | 4 | 371 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 518 |
Useless parentheses. | 4 | 518 |
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 111 |
Useless parentheses. | 4 | 112 |
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'simulator'. | 3 | 41 |