PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

org/opentrafficsim/swing/graphs/SwingPlot.java

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

org/opentrafficsim/swing/gui/OTSAnimationPanel.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 253
EmptyTryBlock Avoid empty try blocks 603605
EmptyCatchBlock Avoid empty catch blocks 606609
CollapsibleIfStatements These nested if statements could be combined 10191022

org/opentrafficsim/swing/gui/OTSControlPanel.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 443
UselessQualifiedThis Useless qualified this usage in the same class. 449
UselessQualifiedThis Useless qualified this usage in the same class. 457
UselessQualifiedThis Useless qualified this usage in the same class. 863

org/opentrafficsim/swing/gui/OTSSwingApplication.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 136139

org/opentrafficsim/swing/script/AbstractSimulationScript.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 278
UselessQualifiedThis Useless qualified this usage in the same class. 278
UselessQualifiedThis Useless qualified this usage in the same class. 289
UselessQualifiedThis Useless qualified this usage in the same class. 298

Priority 4

org/opentrafficsim/swing/graphs/SwingFundamentalDiagram.java

Rule Violation Line
UselessParentheses Useless parentheses. 72
UselessParentheses Useless parentheses. 183

Files

org/opentrafficsim/swing/graphs/SwingFundamentalDiagram.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 72
UselessParentheses Useless parentheses. 4 183

org/opentrafficsim/swing/graphs/SwingPlot.java

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

org/opentrafficsim/swing/gui/OTSAnimationPanel.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 253
EmptyTryBlock Avoid empty try blocks 3 603605
EmptyCatchBlock Avoid empty catch blocks 3 606609
CollapsibleIfStatements These nested if statements could be combined 3 10191022

org/opentrafficsim/swing/gui/OTSControlPanel.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 443
UselessQualifiedThis Useless qualified this usage in the same class. 3 449
UselessQualifiedThis Useless qualified this usage in the same class. 3 457
UselessQualifiedThis Useless qualified this usage in the same class. 3 863

org/opentrafficsim/swing/gui/OTSSwingApplication.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 136139

org/opentrafficsim/swing/script/AbstractSimulationScript.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 278
UselessQualifiedThis Useless qualified this usage in the same class. 3 278
UselessQualifiedThis Useless qualified this usage in the same class. 3 289
UselessQualifiedThis Useless qualified this usage in the same class. 3 298