PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

org/opentrafficsim/road/network/factory/opendrive/old/Controller.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 6668

org/opentrafficsim/road/network/factory/opendrive/old/JunctionTag.java

Rule Violation Line
UnconditionalIfStatement Do not use if statements that are always true or always false 99

org/opentrafficsim/road/network/factory/opendrive/old/LaneSectionTag.java

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

org/opentrafficsim/road/network/factory/opendrive/old/LaneTag.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'attributes1'. 94

org/opentrafficsim/road/network/factory/opendrive/old/PlanViewTag.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'planViewTag'. 147
UnusedFormalParameter Avoid unused method parameters such as 'parser'. 147
UnusedFormalParameter Avoid unused method parameters such as 'geometryCount'. 148
UnusedLocalVariable Avoid unused local variables such as 'startCurvature'. 150
UnusedLocalVariable Avoid unused local variables such as 'endCurvature'. 151
UnusedLocalVariable Avoid unused local variables such as 'start'. 152
UnusedLocalVariable Avoid unused local variables such as 'length'. 153
UnusedLocalVariable Avoid unused local variables such as 'otsLine'. 175
UnusedFormalParameter Avoid unused method parameters such as 'roadTag'. 188
UnusedLocalVariable Avoid unused local variables such as 'length'. 195
UnusedLocalVariable Avoid unused local variables such as 'mPoint'. 235
UnusedLocalVariable Avoid unused local variables such as 'flipped'. 321
CollapsibleIfStatements These nested if statements could be combined 324331

org/opentrafficsim/road/network/factory/opendrive/old/RoadTag.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'direction'. 543
UnconditionalIfStatement Do not use if statements that are always true or always false 935
EmptyIfStmt Avoid empty if statements 986988
UnconditionalIfStatement Do not use if statements that are always true or always false 1005
EmptyIfStmt Avoid empty if statements 10521054

org/opentrafficsim/road/network/factory/opendrive/old/WidthTag.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'widthCount'. 59

org/opentrafficsim/road/network/factory/opendrive/old/XMLParser.java

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

org/opentrafficsim/road/network/factory/opendrive/parser/OpenDriveNetworkLaneParser.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'originLat'. 199
UnusedLocalVariable Avoid unused local variables such as 'originLon'. 200

Priority 4

org/opentrafficsim/road/network/factory/opendrive/old/PlanViewTag.java

Rule Violation Line
UselessParentheses Useless parentheses. 286
UselessParentheses Useless parentheses. 286
UselessParentheses Useless parentheses. 286
UselessParentheses Useless parentheses. 287
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 297
UselessParentheses Useless parentheses. 305
UselessParentheses Useless parentheses. 305
UselessParentheses Useless parentheses. 305
UselessParentheses Useless parentheses. 306

org/opentrafficsim/road/network/factory/opendrive/old/RoadTag.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.opentrafficsim.draw.network.LinkAnimation' due to existing import 'org.opentrafficsim.draw.network.LinkAnimation' 566

Files

org/opentrafficsim/road/network/factory/opendrive/old/Controller.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 6668

org/opentrafficsim/road/network/factory/opendrive/old/JunctionTag.java

Rule Violation Priority Line
UnconditionalIfStatement Do not use if statements that are always true or always false 3 99

org/opentrafficsim/road/network/factory/opendrive/old/LaneSectionTag.java

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

org/opentrafficsim/road/network/factory/opendrive/old/LaneTag.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'attributes1'. 3 94

org/opentrafficsim/road/network/factory/opendrive/old/PlanViewTag.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'planViewTag'. 3 147
UnusedFormalParameter Avoid unused method parameters such as 'parser'. 3 147
UnusedFormalParameter Avoid unused method parameters such as 'geometryCount'. 3 148
UnusedLocalVariable Avoid unused local variables such as 'startCurvature'. 3 150
UnusedLocalVariable Avoid unused local variables such as 'endCurvature'. 3 151
UnusedLocalVariable Avoid unused local variables such as 'start'. 3 152
UnusedLocalVariable Avoid unused local variables such as 'length'. 3 153
UnusedLocalVariable Avoid unused local variables such as 'otsLine'. 3 175
UnusedFormalParameter Avoid unused method parameters such as 'roadTag'. 3 188
UnusedLocalVariable Avoid unused local variables such as 'length'. 3 195
UnusedLocalVariable Avoid unused local variables such as 'mPoint'. 3 235
UselessParentheses Useless parentheses. 4 286
UselessParentheses Useless parentheses. 4 286
UselessParentheses Useless parentheses. 4 286
UselessParentheses Useless parentheses. 4 287
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 297
UselessParentheses Useless parentheses. 4 305
UselessParentheses Useless parentheses. 4 305
UselessParentheses Useless parentheses. 4 305
UselessParentheses Useless parentheses. 4 306
UnusedLocalVariable Avoid unused local variables such as 'flipped'. 3 321
CollapsibleIfStatements These nested if statements could be combined 3 324331

org/opentrafficsim/road/network/factory/opendrive/old/RoadTag.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'direction'. 3 543
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.opentrafficsim.draw.network.LinkAnimation' due to existing import 'org.opentrafficsim.draw.network.LinkAnimation' 4 566
UnconditionalIfStatement Do not use if statements that are always true or always false 3 935
EmptyIfStmt Avoid empty if statements 3 986988
UnconditionalIfStatement Do not use if statements that are always true or always false 3 1005
EmptyIfStmt Avoid empty if statements 3 10521054

org/opentrafficsim/road/network/factory/opendrive/old/WidthTag.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'widthCount'. 3 59

org/opentrafficsim/road/network/factory/opendrive/old/XMLParser.java

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

org/opentrafficsim/road/network/factory/opendrive/parser/OpenDriveNetworkLaneParser.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'originLat'. 3 199
UnusedLocalVariable Avoid unused local variables such as 'originLon'. 3 200