PMD Results

The following document contains the results of PMD 7.3.0.

Violations By Priority

Priority 3

org/opentrafficsim/draw/TextWeight.java

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

org/opentrafficsim/draw/TextWidth.java

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

org/opentrafficsim/draw/egtf/Egtf.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 616
UselessQualifiedThis Useless qualified this usage in the same class. 616
UselessQualifiedThis Useless qualified this usage in the same class. 655
UselessQualifiedThis Useless qualified this usage in the same class. 655
UselessQualifiedThis Useless qualified this usage in the same class. 835
UselessQualifiedThis Useless qualified this usage in the same class. 835
UselessQualifiedThis Useless qualified this usage in the same class. 906
UselessQualifiedThis Useless qualified this usage in the same class. 906

org/opentrafficsim/draw/graphs/ContourDataSource.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 396
UselessQualifiedThis Useless qualified this usage in the same class. 404
UselessQualifiedThis Useless qualified this usage in the same class. 426
UselessQualifiedThis Useless qualified this usage in the same class. 774
UselessQualifiedThis Useless qualified this usage in the same class. 775

org/opentrafficsim/draw/graphs/GraphPath.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on record 'Section': records are implicitly static 230

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 193

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on class 'LoopDetectorText': the class is declared in an interface type 201
UnnecessaryModifier Unnecessary modifier 'public' on class 'SinkText': the class is declared in an interface type 243

Priority 4

org/opentrafficsim/draw/graphs/AbstractPlot.java

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

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

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

org/opentrafficsim/draw/road/BusStopAnimation.java

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

org/opentrafficsim/draw/road/ConflictAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData' 17

org/opentrafficsim/draw/road/GtuGeneratorPositionAnimation.java

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

org/opentrafficsim/draw/road/LaneAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData' 21
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 229

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 158
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 218
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 260

org/opentrafficsim/draw/road/TrafficLightAnimation.java

Rule Violation Line
UnnecessaryImport Unused import 'org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData' 15
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 117

org/opentrafficsim/draw/road/TrafficLightDetectorAnimation.java

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

Files

org/opentrafficsim/draw/TextWeight.java

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

org/opentrafficsim/draw/TextWidth.java

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

org/opentrafficsim/draw/egtf/Egtf.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 616
UselessQualifiedThis Useless qualified this usage in the same class. 3 616
UselessQualifiedThis Useless qualified this usage in the same class. 3 655
UselessQualifiedThis Useless qualified this usage in the same class. 3 655
UselessQualifiedThis Useless qualified this usage in the same class. 3 835
UselessQualifiedThis Useless qualified this usage in the same class. 3 835
UselessQualifiedThis Useless qualified this usage in the same class. 3 906
UselessQualifiedThis Useless qualified this usage in the same class. 3 906

org/opentrafficsim/draw/graphs/AbstractPlot.java

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

org/opentrafficsim/draw/graphs/ContourDataSource.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 396
UselessQualifiedThis Useless qualified this usage in the same class. 3 404
UselessQualifiedThis Useless qualified this usage in the same class. 3 426
UselessQualifiedThis Useless qualified this usage in the same class. 3 774
UselessQualifiedThis Useless qualified this usage in the same class. 3 775

org/opentrafficsim/draw/graphs/GraphPath.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on record 'Section': records are implicitly static 3 230

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

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

org/opentrafficsim/draw/road/BusStopAnimation.java

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

org/opentrafficsim/draw/road/ConflictAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData' 4 17

org/opentrafficsim/draw/road/GtuGeneratorPositionAnimation.java

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

org/opentrafficsim/draw/road/LaneAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData' 4 21
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 229

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 158
UnnecessaryModifier Unnecessary modifier 'public' on class 'LoopDetectorText': the class is declared in an interface type 3 201
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 218
UnnecessaryModifier Unnecessary modifier 'public' on class 'SinkText': the class is declared in an interface type 3 243
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 260

org/opentrafficsim/draw/road/TrafficLightAnimation.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData' 4 15
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 117

org/opentrafficsim/draw/road/TrafficLightDetectorAnimation.java

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