PMD Results

The following document contains the results of PMD 6.13.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/AnimationToggles.java

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

org/opentrafficsim/swing/gui/OTSAnimationPanel.java

Rule Violation Line
EmptyTryBlock Avoid empty try blocks 600602
EmptyCatchBlock Avoid empty catch blocks 603606
CollapsibleIfStatements These nested if statements could be combined 10211024

org/opentrafficsim/swing/gui/OTSControlPanel.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 417
UselessQualifiedThis Useless qualified this usage in the same class. 423
UnusedLocalVariable Avoid unused local variables such as 'rect'. 429
UselessQualifiedThis Useless qualified this usage in the same class. 432
UselessQualifiedThis Useless qualified this usage in the same class. 832

org/opentrafficsim/swing/gui/OTSSwingApplication.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 137140

org/opentrafficsim/swing/script/AbstractSimulationScript.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 273
UselessQualifiedThis Useless qualified this usage in the same class. 273
UselessQualifiedThis Useless qualified this usage in the same class. 284
UselessQualifiedThis Useless qualified this usage in the same class. 293

Priority 4

org/opentrafficsim/swing/graphs/SwingFundamentalDiagram.java

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

org/opentrafficsim/swing/gui/OTSControlPanel.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'nl.tudelft.simulation.naming.context.ContextInterface' 63
UnusedImports Avoid unused imports such as 'nl.tudelft.simulation.naming.context.util.ContextUtil' 64

Files

org/opentrafficsim/swing/graphs/SwingFundamentalDiagram.java

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

org/opentrafficsim/swing/graphs/SwingPlot.java

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

org/opentrafficsim/swing/gui/AnimationToggles.java

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

org/opentrafficsim/swing/gui/OTSAnimationPanel.java

Rule Violation Priority Line
EmptyTryBlock Avoid empty try blocks 3 600602
EmptyCatchBlock Avoid empty catch blocks 3 603606
CollapsibleIfStatements These nested if statements could be combined 3 10211024

org/opentrafficsim/swing/gui/OTSControlPanel.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'nl.tudelft.simulation.naming.context.ContextInterface' 4 63
UnusedImports Avoid unused imports such as 'nl.tudelft.simulation.naming.context.util.ContextUtil' 4 64
UselessQualifiedThis Useless qualified this usage in the same class. 3 417
UselessQualifiedThis Useless qualified this usage in the same class. 3 423
UnusedLocalVariable Avoid unused local variables such as 'rect'. 3 429
UselessQualifiedThis Useless qualified this usage in the same class. 3 432
UselessQualifiedThis Useless qualified this usage in the same class. 3 832

org/opentrafficsim/swing/gui/OTSSwingApplication.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 137140

org/opentrafficsim/swing/script/AbstractSimulationScript.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 273
UselessQualifiedThis Useless qualified this usage in the same class. 3 273
UselessQualifiedThis Useless qualified this usage in the same class. 3 284
UselessQualifiedThis Useless qualified this usage in the same class. 3 293