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. 430
UselessQualifiedThis Useless qualified this usage in the same class. 436
UselessQualifiedThis Useless qualified this usage in the same class. 444
UselessQualifiedThis Useless qualified this usage in the same class. 850

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. 276
UselessQualifiedThis Useless qualified this usage in the same class. 276
UselessQualifiedThis Useless qualified this usage in the same class. 287
UselessQualifiedThis Useless qualified this usage in the same class. 296

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 430
UselessQualifiedThis Useless qualified this usage in the same class. 3 436
UselessQualifiedThis Useless qualified this usage in the same class. 3 444
UselessQualifiedThis Useless qualified this usage in the same class. 3 850

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 276
UselessQualifiedThis Useless qualified this usage in the same class. 3 276
UselessQualifiedThis Useless qualified this usage in the same class. 3 287
UselessQualifiedThis Useless qualified this usage in the same class. 3 296