PMD Results

The following document contains the results of PMD 6.46.0.

Violations By Priority

Priority 2

org/opentrafficsim/road/gtu/lane/tactical/LaneBasedCfLcTacticalPlanner.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 529

Priority 3

org/opentrafficsim/road/gtu/generator/CfRoomChecker.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5154

org/opentrafficsim/road/gtu/generator/GeneratorPositions.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 504507
UnnecessaryModifier Unnecessary modifier 'public' on interface 'RoadPosition': members of interface types are implicitly public 8801061

org/opentrafficsim/road/gtu/lane/LaneBasedGtu.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 14191422
SimplifiedTernary Ternary operators that can be simplified with || or && 1672

org/opentrafficsim/road/gtu/lane/perception/AbstractPerceptionReiterable.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 125
UselessQualifiedThis Useless qualified this usage in the same class. 127
UselessQualifiedThis Useless qualified this usage in the same class. 128
UselessQualifiedThis Useless qualified this usage in the same class. 132
UselessQualifiedThis Useless qualified this usage in the same class. 133
UselessQualifiedThis Useless qualified this usage in the same class. 315

org/opentrafficsim/road/gtu/lane/perception/DownstreamNeighborsIterable.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 119123

org/opentrafficsim/road/gtu/lane/perception/PerceptionCollectable.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on interface 'PerceptionCollector': members of interface types are implicitly public 7493
UnnecessaryModifier Unnecessary modifier 'public' on interface 'PerceptionAccumulator': members of interface types are implicitly public 108118
UnnecessaryModifier Unnecessary modifier 'public' on interface 'PerceptionFinalizer': members of interface types are implicitly public 133141

org/opentrafficsim/road/gtu/lane/perception/RollingLaneStructureRecord.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 331337
UnusedLocalVariable Avoid unused local variables such as 'l'. 389

org/opentrafficsim/road/gtu/lane/perception/categories/DirectDefaultSimplePerception.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 720723
CollapsibleIfStatements These nested if statements could be combined 852869

org/opentrafficsim/road/gtu/lane/perception/categories/LaneBasedAbstractPerceptionCategory.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'context'. 125

org/opentrafficsim/road/gtu/lane/perception/headway/HeadwayStopLine.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 3639

org/opentrafficsim/road/gtu/lane/plan/operational/LaneChange.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'planDistance'. 670
UnusedFormalParameter Avoid unused method parameters such as 'fromLine'. 671
UnusedFormalParameter Avoid unused method parameters such as 'from'. 671
UnusedFormalParameter Avoid unused method parameters such as 'width'. 671
UnusedFormalParameter Avoid unused method parameters such as 'startPosition'. 671
UnusedFormalParameter Avoid unused method parameters such as 'toLine'. 672
UnusedLocalVariable Avoid unused local variables such as 'f'. 684
UnusedLocalVariable Avoid unused local variables such as 'cumulLcLength'. 688

org/opentrafficsim/road/gtu/lane/plan/operational/LaneOperationalPlanBuilder.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'startSpeed'. 459

org/opentrafficsim/road/gtu/lane/tactical/LaneBasedCfLcTacticalPlanner.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'currentLaneFine'. 147
UnusedLocalVariable Avoid unused local variables such as 'nextSplitNode'. 451
UnusedLocalVariable Avoid unused local variables such as 'nextLane'. 526

org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationBusStop.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 7483

org/opentrafficsim/road/gtu/lane/tactical/toledo/Toledo.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'gtu'. 714

org/opentrafficsim/road/gtu/lane/tactical/util/ConflictUtil.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 190202
CollapsibleIfStatements These nested if statements could be combined 500516
UnusedLocalVariable Avoid unused local variables such as 'network'. 738

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Cooperation.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'b'. 84
SimplifiedTernary Ternary operators that can be simplified with || or && 92

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/LmrsData.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 109

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/LmrsUtil.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 185202
UnusedPrivateMethod Avoid unused private methods such as 'quickIntersectionScan(Parameters,SpeedLimitInfo,CarFollowingModel,Speed,LateralDirectionality,IntersectionPerception)'. 592594

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Synchronization.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1838
SimplifiedTernary Ternary operators that can be simplified with || or && 399400
SimplifiedTernary Ternary operators that can be simplified with || or && 416417
UnnecessaryModifier Unnecessary modifier 'public' on method 'getMergeDistance': the method is declared in an interface type 501513

org/opentrafficsim/road/gtu/strategical/RouteGenerator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 117120
UnnecessarySemicolon Unnecessary semicolon 163

org/opentrafficsim/road/network/factory/LaneFactory.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 109
UnusedFormalParameter Avoid unused method parameters such as 'simulator'. 433

org/opentrafficsim/road/network/lane/Lane.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'shape'. 79
CollapsibleIfStatements These nested if statements could be combined 357361
CollapsibleIfStatements These nested if statements could be combined 397401

org/opentrafficsim/road/network/lane/Shoulder.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'fixGradualLateralOffset'. 37

org/opentrafficsim/road/network/lane/conflict/Conflict.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 378399
CollapsibleIfStatements These nested if statements could be combined 755774

org/opentrafficsim/road/network/lane/conflict/ConflictBuilder.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 259262

org/opentrafficsim/road/network/lane/object/BusStop.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'name'. 42
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 60

org/opentrafficsim/road/network/lane/object/Distraction.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 37

org/opentrafficsim/road/network/lane/object/SpeedSign.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 52

Priority 4

org/opentrafficsim/road/gtu/generator/GeneratorPositions.java

Rule Violation Line
UselessParentheses Useless parentheses. 797
UselessParentheses Useless parentheses. 1003

org/opentrafficsim/road/gtu/lane/LaneBasedGtu.java

Rule Violation Line
UnnecessaryImport Duplicate import 'org.opentrafficsim.road.network.RoadNetwork' 67
UselessParentheses Useless parentheses. 1133

org/opentrafficsim/road/gtu/lane/VehicleModel.java

Rule Violation Line
UselessParentheses Useless parentheses. 43

org/opentrafficsim/road/gtu/lane/perception/AbstractPerceptionReiterable.java

Rule Violation Line
UnnecessaryImport Unused import 'org.djutils.exceptions.Throw' 8
UnnecessaryImport Unused import 'org.djutils.exceptions.Try' 9

org/opentrafficsim/road/gtu/lane/perception/RelativeLane.java

Rule Violation Line
UselessParentheses Useless parentheses. 64

org/opentrafficsim/road/gtu/lane/perception/RollingLaneStructure.java

Rule Violation Line
UselessParentheses Useless parentheses. 464

org/opentrafficsim/road/gtu/lane/perception/RollingLaneStructureRecord.java

Rule Violation Line
UselessParentheses Useless parentheses. 331332
UselessParentheses Useless parentheses. 333334

org/opentrafficsim/road/gtu/lane/perception/categories/DirectDefaultSimplePerception.java

Rule Violation Line
UselessParentheses Useless parentheses. 921
UselessParentheses Useless parentheses. 921
UselessParentheses Useless parentheses. 922
UselessParentheses Useless parentheses. 922

org/opentrafficsim/road/gtu/lane/perception/categories/DirectInfrastructurePerception.java

Rule Violation Line
UselessParentheses Useless parentheses. 412
UselessParentheses Useless parentheses. 412
UselessParentheses Useless parentheses. 427
UselessParentheses Useless parentheses. 427
UselessParentheses Useless parentheses. 440
UselessParentheses Useless parentheses. 440
UselessParentheses Useless parentheses. 444
UselessParentheses Useless parentheses. 444
UselessParentheses Useless parentheses. 455
UselessParentheses Useless parentheses. 455
UselessParentheses Useless parentheses. 653
UselessParentheses Useless parentheses. 654

org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/DirectNeighborsPerception.java

Rule Violation Line
UselessParentheses Useless parentheses. 270271
UselessParentheses Useless parentheses. 272273

org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/HeadwayGtuType.java

Rule Violation Line
UselessParentheses Useless parentheses. 209

org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/TaskHeadwayCollector.java

Rule Violation Line
UselessParentheses Useless parentheses. 80

org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationHeadway.java

Rule Violation Line
UselessParentheses Useless parentheses. 45

org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationSituationalAwareness.java

Rule Violation Line
UselessParentheses Useless parentheses. 87

org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationSpeed.java

Rule Violation Line
UselessParentheses Useless parentheses. 40

org/opentrafficsim/road/gtu/lane/perception/mental/Fuller.java

Rule Violation Line
UselessParentheses Useless parentheses. 179

org/opentrafficsim/road/gtu/lane/perception/mental/TaskHeadwayBased.java

Rule Violation Line
UselessParentheses Useless parentheses. 55

org/opentrafficsim/road/gtu/lane/plan/operational/LaneChange.java

Rule Violation Line
UselessParentheses Useless parentheses. 600
UselessParentheses Useless parentheses. 750

org/opentrafficsim/road/gtu/lane/plan/operational/LaneOperationalPlanBuilder.java

Rule Violation Line
UselessParentheses Useless parentheses. 400

org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveGetInLane.java

Rule Violation Line
UselessParentheses Useless parentheses. 89

org/opentrafficsim/road/gtu/lane/tactical/toledo/Toledo.java

Rule Violation Line
UselessParentheses Useless parentheses. 160
UselessParentheses Useless parentheses. 161162

org/opentrafficsim/road/gtu/lane/tactical/util/ConflictUtil.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.core.gtu.GtuType' 31
UselessParentheses Useless parentheses. 850851

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Cooperation.java

Rule Violation Line
UselessParentheses Useless parentheses. 42
UselessParentheses Useless parentheses. 43
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 79
UselessParentheses Useless parentheses. 123
UselessParentheses Useless parentheses. 124

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Synchronization.java

Rule Violation Line
UselessParentheses Useless parentheses. 352
UselessParentheses Useless parentheses. 403404
UselessParentheses Useless parentheses. 428
UselessParentheses Useless parentheses. 738
UselessParentheses Useless parentheses. 738

org/opentrafficsim/road/gtu/strategical/LaneBasedStrategicalRoutePlanner.java

Rule Violation Line
UselessParentheses Useless parentheses. 172

org/opentrafficsim/road/gtu/strategical/RouteGenerator.java

Rule Violation Line
UselessParentheses Useless parentheses. 127

org/opentrafficsim/road/network/RoadNetwork.java

Rule Violation Line
UselessParentheses Useless parentheses. 333

org/opentrafficsim/road/network/control/rampmetering/AlineaSwitch.java

Rule Violation Line
UselessParentheses Useless parentheses. 59

org/opentrafficsim/road/network/control/rampmetering/RwsSwitch.java

Rule Violation Line
UselessParentheses Useless parentheses. 62

org/opentrafficsim/road/network/lane/CrossSectionElement.java

Rule Violation Line
UselessParentheses Useless parentheses. 269
UselessParentheses Useless parentheses. 270
UselessParentheses Useless parentheses. 270

org/opentrafficsim/road/network/lane/Lane.java

Rule Violation Line
UselessParentheses Useless parentheses. 352353
UselessParentheses Useless parentheses. 354355
UselessParentheses Useless parentheses. 392393
UselessParentheses Useless parentheses. 394395

org/opentrafficsim/road/network/lane/conflict/ConflictBuilder.java

Rule Violation Line
UselessParentheses Useless parentheses. 267
UselessParentheses Useless parentheses. 434
UselessParentheses Useless parentheses. 435

org/opentrafficsim/road/network/lane/conflict/ConflictBuilderParallel.java

Rule Violation Line
UselessParentheses Useless parentheses. 684
UselessParentheses Useless parentheses. 685

org/opentrafficsim/road/network/lane/conflict/DefaultConflictRule.java

Rule Violation Line
UselessParentheses Useless parentheses. 108
UselessParentheses Useless parentheses. 109

org/opentrafficsim/road/od/OdApplier.java

Rule Violation Line
UselessParentheses Useless parentheses. 336
UselessParentheses Useless parentheses. 341

org/opentrafficsim/road/od/SplitFraction.java

Rule Violation Line
UselessParentheses Useless parentheses. 177

Files

org/opentrafficsim/road/gtu/generator/CfRoomChecker.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5154

org/opentrafficsim/road/gtu/generator/GeneratorPositions.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 504507
UselessParentheses Useless parentheses. 4 797
UnnecessaryModifier Unnecessary modifier 'public' on interface 'RoadPosition': members of interface types are implicitly public 3 8801061
UselessParentheses Useless parentheses. 4 1003

org/opentrafficsim/road/gtu/lane/LaneBasedGtu.java

Rule Violation Priority Line
UnnecessaryImport Duplicate import 'org.opentrafficsim.road.network.RoadNetwork' 4 67
UselessParentheses Useless parentheses. 4 1133
EmptyCatchBlock Avoid empty catch blocks 3 14191422
SimplifiedTernary Ternary operators that can be simplified with || or && 3 1672

org/opentrafficsim/road/gtu/lane/VehicleModel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 43

org/opentrafficsim/road/gtu/lane/perception/AbstractPerceptionReiterable.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.djutils.exceptions.Throw' 4 8
UnnecessaryImport Unused import 'org.djutils.exceptions.Try' 4 9
UselessQualifiedThis Useless qualified this usage in the same class. 3 125
UselessQualifiedThis Useless qualified this usage in the same class. 3 127
UselessQualifiedThis Useless qualified this usage in the same class. 3 128
UselessQualifiedThis Useless qualified this usage in the same class. 3 132
UselessQualifiedThis Useless qualified this usage in the same class. 3 133
UselessQualifiedThis Useless qualified this usage in the same class. 3 315

org/opentrafficsim/road/gtu/lane/perception/DownstreamNeighborsIterable.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 119123

org/opentrafficsim/road/gtu/lane/perception/PerceptionCollectable.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on interface 'PerceptionCollector': members of interface types are implicitly public 3 7493
UnnecessaryModifier Unnecessary modifier 'public' on interface 'PerceptionAccumulator': members of interface types are implicitly public 3 108118
UnnecessaryModifier Unnecessary modifier 'public' on interface 'PerceptionFinalizer': members of interface types are implicitly public 3 133141

org/opentrafficsim/road/gtu/lane/perception/RelativeLane.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 64

org/opentrafficsim/road/gtu/lane/perception/RollingLaneStructure.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 464

org/opentrafficsim/road/gtu/lane/perception/RollingLaneStructureRecord.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 331337
UselessParentheses Useless parentheses. 4 331332
UselessParentheses Useless parentheses. 4 333334
UnusedLocalVariable Avoid unused local variables such as 'l'. 3 389

org/opentrafficsim/road/gtu/lane/perception/categories/DirectDefaultSimplePerception.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 720723
CollapsibleIfStatements These nested if statements could be combined 3 852869
UselessParentheses Useless parentheses. 4 921
UselessParentheses Useless parentheses. 4 921
UselessParentheses Useless parentheses. 4 922
UselessParentheses Useless parentheses. 4 922

org/opentrafficsim/road/gtu/lane/perception/categories/DirectInfrastructurePerception.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 412
UselessParentheses Useless parentheses. 4 412
UselessParentheses Useless parentheses. 4 427
UselessParentheses Useless parentheses. 4 427
UselessParentheses Useless parentheses. 4 440
UselessParentheses Useless parentheses. 4 440
UselessParentheses Useless parentheses. 4 444
UselessParentheses Useless parentheses. 4 444
UselessParentheses Useless parentheses. 4 455
UselessParentheses Useless parentheses. 4 455
UselessParentheses Useless parentheses. 4 653
UselessParentheses Useless parentheses. 4 654

org/opentrafficsim/road/gtu/lane/perception/categories/LaneBasedAbstractPerceptionCategory.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'context'. 3 125

org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/DirectNeighborsPerception.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 270271
UselessParentheses Useless parentheses. 4 272273

org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/HeadwayGtuType.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 209

org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/TaskHeadwayCollector.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 80

org/opentrafficsim/road/gtu/lane/perception/headway/HeadwayStopLine.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 3639

org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationHeadway.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 45

org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationSituationalAwareness.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 87

org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationSpeed.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 40

org/opentrafficsim/road/gtu/lane/perception/mental/Fuller.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 179

org/opentrafficsim/road/gtu/lane/perception/mental/TaskHeadwayBased.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 55

org/opentrafficsim/road/gtu/lane/plan/operational/LaneChange.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 600
UnusedFormalParameter Avoid unused method parameters such as 'planDistance'. 3 670
UnusedFormalParameter Avoid unused method parameters such as 'fromLine'. 3 671
UnusedFormalParameter Avoid unused method parameters such as 'from'. 3 671
UnusedFormalParameter Avoid unused method parameters such as 'width'. 3 671
UnusedFormalParameter Avoid unused method parameters such as 'startPosition'. 3 671
UnusedFormalParameter Avoid unused method parameters such as 'toLine'. 3 672
UnusedLocalVariable Avoid unused local variables such as 'f'. 3 684
UnusedLocalVariable Avoid unused local variables such as 'cumulLcLength'. 3 688
UselessParentheses Useless parentheses. 4 750

org/opentrafficsim/road/gtu/lane/plan/operational/LaneOperationalPlanBuilder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 400
UnusedFormalParameter Avoid unused method parameters such as 'startSpeed'. 3 459

org/opentrafficsim/road/gtu/lane/tactical/LaneBasedCfLcTacticalPlanner.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'currentLaneFine'. 3 147
UnusedLocalVariable Avoid unused local variables such as 'nextSplitNode'. 3 451
UnusedLocalVariable Avoid unused local variables such as 'nextLane'. 3 526
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 529

org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationBusStop.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 7483

org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveGetInLane.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 89

org/opentrafficsim/road/gtu/lane/tactical/toledo/Toledo.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 160
UselessParentheses Useless parentheses. 4 161162
UnusedFormalParameter Avoid unused method parameters such as 'gtu'. 3 714

org/opentrafficsim/road/gtu/lane/tactical/util/ConflictUtil.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.core.gtu.GtuType' 4 31
CollapsibleIfStatements These nested if statements could be combined 3 190202
CollapsibleIfStatements These nested if statements could be combined 3 500516
UnusedLocalVariable Avoid unused local variables such as 'network'. 3 738
UselessParentheses Useless parentheses. 4 850851

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Cooperation.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 42
UselessParentheses Useless parentheses. 4 43
UselessParentheses Useless parentheses. 4 78
UselessParentheses Useless parentheses. 4 79
UnusedLocalVariable Avoid unused local variables such as 'b'. 3 84
SimplifiedTernary Ternary operators that can be simplified with || or && 3 92
UselessParentheses Useless parentheses. 4 123
UselessParentheses Useless parentheses. 4 124

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/LmrsData.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 109

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/LmrsUtil.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 185202
UnusedPrivateMethod Avoid unused private methods such as 'quickIntersectionScan(Parameters,SpeedLimitInfo,CarFollowingModel,Speed,LateralDirectionality,IntersectionPerception)'. 3 592594

org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Synchronization.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1838
UselessParentheses Useless parentheses. 4 352
SimplifiedTernary Ternary operators that can be simplified with || or && 3 399400
UselessParentheses Useless parentheses. 4 403404
SimplifiedTernary Ternary operators that can be simplified with || or && 3 416417
UselessParentheses Useless parentheses. 4 428
UnnecessaryModifier Unnecessary modifier 'public' on method 'getMergeDistance': the method is declared in an interface type 3 501513
UselessParentheses Useless parentheses. 4 738
UselessParentheses Useless parentheses. 4 738

org/opentrafficsim/road/gtu/strategical/LaneBasedStrategicalRoutePlanner.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 172

org/opentrafficsim/road/gtu/strategical/RouteGenerator.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 117120
UselessParentheses Useless parentheses. 4 127
UnnecessarySemicolon Unnecessary semicolon 3 163

org/opentrafficsim/road/network/RoadNetwork.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 333

org/opentrafficsim/road/network/control/rampmetering/AlineaSwitch.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 59

org/opentrafficsim/road/network/control/rampmetering/RwsSwitch.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 62

org/opentrafficsim/road/network/factory/LaneFactory.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 3 109
UnusedFormalParameter Avoid unused method parameters such as 'simulator'. 3 433

org/opentrafficsim/road/network/lane/CrossSectionElement.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 269
UselessParentheses Useless parentheses. 4 270
UselessParentheses Useless parentheses. 4 270

org/opentrafficsim/road/network/lane/Lane.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'shape'. 3 79
UselessParentheses Useless parentheses. 4 352353
UselessParentheses Useless parentheses. 4 354355
CollapsibleIfStatements These nested if statements could be combined 3 357361
UselessParentheses Useless parentheses. 4 392393
UselessParentheses Useless parentheses. 4 394395
CollapsibleIfStatements These nested if statements could be combined 3 397401

org/opentrafficsim/road/network/lane/Shoulder.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'fixGradualLateralOffset'. 3 37

org/opentrafficsim/road/network/lane/conflict/Conflict.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 378399
CollapsibleIfStatements These nested if statements could be combined 3 755774

org/opentrafficsim/road/network/lane/conflict/ConflictBuilder.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 259262
UselessParentheses Useless parentheses. 4 267
UselessParentheses Useless parentheses. 4 434
UselessParentheses Useless parentheses. 4 435

org/opentrafficsim/road/network/lane/conflict/ConflictBuilderParallel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 684
UselessParentheses Useless parentheses. 4 685

org/opentrafficsim/road/network/lane/conflict/DefaultConflictRule.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 108
UselessParentheses Useless parentheses. 4 109

org/opentrafficsim/road/network/lane/object/BusStop.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'name'. 3 42
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 3 60

org/opentrafficsim/road/network/lane/object/Distraction.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 3 37

org/opentrafficsim/road/network/lane/object/SpeedSign.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'simulator'. 3 52

org/opentrafficsim/road/od/OdApplier.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 336
UselessParentheses Useless parentheses. 4 341

org/opentrafficsim/road/od/SplitFraction.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 177

Suppressed Violations

Filename Rule message Suppression type Reason
org/opentrafficsim/road/gtu/generator/LaneBasedGtuGenerator.java Avoid unused private methods such as 'disable(Set)'. annotation
org/opentrafficsim/road/gtu/generator/LaneBasedGtuGenerator.java Avoid unused private methods such as 'enable()'. annotation
org/opentrafficsim/road/gtu/generator/LaneBasedGtuGenerator.java Avoid unused private methods such as 'tryToPlaceGTU(GeneratorLanePosition)'. annotation
org/opentrafficsim/road/gtu/generator/LaneBasedGtuGenerator.java Avoid unused private methods such as 'generateCharacteristics()'. annotation
org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/NeighborsUtil.java Avoid unused local variables such as 'gtu'. annotation