PMD Results

The following document contains the results of PMD 6.46.0.

Violations By Priority

Priority 3

nl/tudelft/simulation/dsol/jetty/sse/OtsWebModel.java

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 385388

nl/tudelft/simulation/dsol/jetty/sse/OtsWebServer.java

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 418421

nl/tudelft/simulation/dsol/jetty/sse/TestDemoServer.java

Rule Violation Line
EmptyControlStatement Empty if statement 402417
EmptyControlStatement Empty if statement 406417
EmptyControlStatement Empty if statement 410417
EmptyControlStatement Empty if statement 414417

nl/tudelft/simulation/dsol/web/animation/d2/HtmlAnimationPanel.java

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 187190
EmptyCatchBlock Avoid empty catch blocks 309312

org/opentrafficsim/web/animation/WebAnimationToggles.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'showAnimationClass': the method is already in a final class 109112
UnnecessaryModifier Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class 119122

Priority 4

org/opentrafficsim/web/test/TJunctionModel.java

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

Files

nl/tudelft/simulation/dsol/jetty/sse/OtsWebModel.java

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 385388

nl/tudelft/simulation/dsol/jetty/sse/OtsWebServer.java

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 418421

nl/tudelft/simulation/dsol/jetty/sse/TestDemoServer.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 402417
EmptyControlStatement Empty if statement 3 406417
EmptyControlStatement Empty if statement 3 410417
EmptyControlStatement Empty if statement 3 414417

nl/tudelft/simulation/dsol/web/animation/d2/HtmlAnimationPanel.java

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 187190
EmptyCatchBlock Avoid empty catch blocks 3 309312

org/opentrafficsim/web/animation/WebAnimationToggles.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'showAnimationClass': the method is already in a final class 3 109112
UnnecessaryModifier Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class 3 119122

org/opentrafficsim/web/test/TJunctionModel.java

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