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'. 95
SimplifiedTernary Ternary operators that can be simplified with || or && 164
CollapsibleIfStatements These nested if statements could be combined 188191
EmptyCatchBlock Avoid empty catch blocks 310313

org/opentrafficsim/web/animation/WebAnimationToggles.java

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

Priority 4

nl/tudelft/simulation/dsol/web/animation/D2/HTMLAnimationPanel.java

Rule Violation Line
UnnecessaryImport Unused import 'nl.tudelft.simulation.dsol.simulators.SimulatorInterface' 29

org/opentrafficsim/web/test/CircularRoadModel.java

Rule Violation Line
UnnecessaryImport Unused import 'nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface' 46

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
UnnecessaryImport Unused import 'nl.tudelft.simulation.dsol.simulators.SimulatorInterface' 4 29
UnusedPrivateField Avoid unused private fields such as 'gtuColorer'. 3 95
SimplifiedTernary Ternary operators that can be simplified with || or && 3 164
CollapsibleIfStatements These nested if statements could be combined 3 188191
EmptyCatchBlock Avoid empty catch blocks 3 310313

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 105108
UnnecessaryModifier Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class 3 115118

org/opentrafficsim/web/test/CircularRoadModel.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface' 4 46