PMD Results

The following document contains the results of PMD 7.7.0.

Violations By Priority

Priority 3

org/opentrafficsim/animation/TextWeight.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'getValue': the method is already in a final class 66

org/opentrafficsim/animation/TextWidth.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'getValue': the method is already in a final class 48

org/opentrafficsim/animation/egtf/Egtf.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 625
UselessQualifiedThis Useless qualified this usage in the same class. 625
UselessQualifiedThis Useless qualified this usage in the same class. 664
UselessQualifiedThis Useless qualified this usage in the same class. 664
UselessQualifiedThis Useless qualified this usage in the same class. 844
UselessQualifiedThis Useless qualified this usage in the same class. 844
UselessQualifiedThis Useless qualified this usage in the same class. 915
UselessQualifiedThis Useless qualified this usage in the same class. 915

org/opentrafficsim/animation/graphs/AbstractPlot.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 148

org/opentrafficsim/animation/graphs/ContourPlotExtendedData.java

Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 184

org/opentrafficsim/animation/graphs/FdDataSource.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 298307
UselessQualifiedThis Useless qualified this usage in the same class. 475
UselessQualifiedThis Useless qualified this usage in the same class. 484
UselessQualifiedThis Useless qualified this usage in the same class. 485
UselessQualifiedThis Useless qualified this usage in the same class. 488
UselessQualifiedThis Useless qualified this usage in the same class. 490
UselessQualifiedThis Useless qualified this usage in the same class. 491
UselessQualifiedThis Useless qualified this usage in the same class. 496

org/opentrafficsim/animation/graphs/OffsetTrajectory.java

Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 126

org/opentrafficsim/animation/graphs/TrajectoryPlot.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 312313

org/opentrafficsim/animation/gtu/DefaultCarAnimation.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 203

org/opentrafficsim/animation/network/NodeAnimation.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 55

Priority 4

org/opentrafficsim/animation/data/gis/CoordinateTransformLonLatToXy.java

Rule Violation Line
UselessParentheses Useless parentheses. 86

org/opentrafficsim/animation/graphs/AbstractContourPlot.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 18
UselessParentheses Useless parentheses. 413
UselessParentheses Useless parentheses. 424

org/opentrafficsim/animation/graphs/AbstractPlot.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.awt': 'Font' is already in scope because it is imported in this file 168

org/opentrafficsim/animation/graphs/DistributionPlotExtendedData.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 13

org/opentrafficsim/animation/graphs/FundamentalDiagram.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 22

org/opentrafficsim/animation/graphs/TrajectoryPlot.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 39
UselessParentheses Useless parentheses. 324
UselessParentheses Useless parentheses. 509

org/opentrafficsim/animation/gtu/DefaultCarAnimation.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN1' is already in scope because it is inherited by an enclosing type 239

org/opentrafficsim/animation/gtu/PerceptionAnimation.java

Rule Violation Line
UselessParentheses Useless parentheses. 81

org/opentrafficsim/animation/network/LinkAnimation.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 144

org/opentrafficsim/animation/network/NodeAnimation.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 106

org/opentrafficsim/animation/road/BusStopAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 16
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 86

org/opentrafficsim/animation/road/ConflictAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 18

org/opentrafficsim/animation/road/GtuGeneratorPositionAnimation.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 102

org/opentrafficsim/animation/road/LaneAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.CrossSectionElementAnimation.CrossSectionElementData' 19
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 222

org/opentrafficsim/animation/road/LaneDetectorAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 16
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 106
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 145
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 169

org/opentrafficsim/animation/road/TrafficLightAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 12
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 77

org/opentrafficsim/animation/road/TrafficLightDetectorAnimation.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 113

Files

org/opentrafficsim/animation/TextWeight.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'getValue': the method is already in a final class 3 66

org/opentrafficsim/animation/TextWidth.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'getValue': the method is already in a final class 3 48

org/opentrafficsim/animation/data/gis/CoordinateTransformLonLatToXy.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 86

org/opentrafficsim/animation/egtf/Egtf.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 625
UselessQualifiedThis Useless qualified this usage in the same class. 3 625
UselessQualifiedThis Useless qualified this usage in the same class. 3 664
UselessQualifiedThis Useless qualified this usage in the same class. 3 664
UselessQualifiedThis Useless qualified this usage in the same class. 3 844
UselessQualifiedThis Useless qualified this usage in the same class. 3 844
UselessQualifiedThis Useless qualified this usage in the same class. 3 915
UselessQualifiedThis Useless qualified this usage in the same class. 3 915

org/opentrafficsim/animation/graphs/AbstractContourPlot.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 4 18
UselessParentheses Useless parentheses. 4 413
UselessParentheses Useless parentheses. 4 424

org/opentrafficsim/animation/graphs/AbstractPlot.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 148
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.awt': 'Font' is already in scope because it is imported in this file 4 168

org/opentrafficsim/animation/graphs/ContourPlotExtendedData.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 184

org/opentrafficsim/animation/graphs/DistributionPlotExtendedData.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 4 13

org/opentrafficsim/animation/graphs/FdDataSource.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 298307
UselessQualifiedThis Useless qualified this usage in the same class. 3 475
UselessQualifiedThis Useless qualified this usage in the same class. 3 484
UselessQualifiedThis Useless qualified this usage in the same class. 3 485
UselessQualifiedThis Useless qualified this usage in the same class. 3 488
UselessQualifiedThis Useless qualified this usage in the same class. 3 490
UselessQualifiedThis Useless qualified this usage in the same class. 3 491
UselessQualifiedThis Useless qualified this usage in the same class. 3 496

org/opentrafficsim/animation/graphs/FundamentalDiagram.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 4 22

org/opentrafficsim/animation/graphs/OffsetTrajectory.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 126

org/opentrafficsim/animation/graphs/TrajectoryPlot.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.graphs.AbstractPlot.PaintState' 4 39
SimplifiedTernary This conditional expression can be simplified with || or && 3 312313
UselessParentheses Useless parentheses. 4 324
UselessParentheses Useless parentheses. 4 509

org/opentrafficsim/animation/gtu/DefaultCarAnimation.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 203
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN1' is already in scope because it is inherited by an enclosing type 4 239

org/opentrafficsim/animation/gtu/PerceptionAnimation.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 81

org/opentrafficsim/animation/network/LinkAnimation.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 144

org/opentrafficsim/animation/network/NodeAnimation.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 55
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 106

org/opentrafficsim/animation/road/BusStopAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 4 16
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 86

org/opentrafficsim/animation/road/ConflictAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 4 18

org/opentrafficsim/animation/road/GtuGeneratorPositionAnimation.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 102

org/opentrafficsim/animation/road/LaneAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.CrossSectionElementAnimation.CrossSectionElementData' 4 19
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 222

org/opentrafficsim/animation/road/LaneDetectorAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 4 16
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 106
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 145
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 169

org/opentrafficsim/animation/road/TrafficLightAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData' 4 12
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 77

org/opentrafficsim/animation/road/TrafficLightDetectorAnimation.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 113