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. 626
UselessQualifiedThis Useless qualified this usage in the same class. 626
UselessQualifiedThis Useless qualified this usage in the same class. 665
UselessQualifiedThis Useless qualified this usage in the same class. 665
UselessQualifiedThis Useless qualified this usage in the same class. 847
UselessQualifiedThis Useless qualified this usage in the same class. 847
UselessQualifiedThis Useless qualified this usage in the same class. 918
UselessQualifiedThis Useless qualified this usage in the same class. 918

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. 775
UselessQualifiedThis Useless qualified this usage in the same class. 776

org/opentrafficsim/draw/graphs/GraphPath.java

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

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 203

org/opentrafficsim/draw/network/NodeAnimation.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocation': the method is declared in an interface type 150

org/opentrafficsim/draw/road/CrossSectionElementAnimation.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getZ': the method is declared in an interface type 115

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

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

org/opentrafficsim/draw/road/PriorityAnimation.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on field 'BOUNDS': the field is declared in an interface type 317

org/opentrafficsim/draw/road/StripeAnimation.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on enum 'Type': the enum is declared in an interface type 256

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 243

org/opentrafficsim/draw/road/BusStopAnimation.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 116

org/opentrafficsim/draw/road/ConflictAnimation.java

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

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 115

org/opentrafficsim/draw/road/LaneAnimation.java

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

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 159
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 220
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 262

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 118

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 122

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 626
UselessQualifiedThis Useless qualified this usage in the same class. 3 626
UselessQualifiedThis Useless qualified this usage in the same class. 3 665
UselessQualifiedThis Useless qualified this usage in the same class. 3 665
UselessQualifiedThis Useless qualified this usage in the same class. 3 847
UselessQualifiedThis Useless qualified this usage in the same class. 3 847
UselessQualifiedThis Useless qualified this usage in the same class. 3 918
UselessQualifiedThis Useless qualified this usage in the same class. 3 918

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 775
UselessQualifiedThis Useless qualified this usage in the same class. 3 776

org/opentrafficsim/draw/graphs/GraphPath.java

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

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

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

org/opentrafficsim/draw/network/NodeAnimation.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocation': the method is declared in an interface type 3 150

org/opentrafficsim/draw/road/BusStopAnimation.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 116

org/opentrafficsim/draw/road/ConflictAnimation.java

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

org/opentrafficsim/draw/road/CrossSectionElementAnimation.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getZ': the method is declared in an interface type 3 115

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 115

org/opentrafficsim/draw/road/LaneAnimation.java

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

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 159
UnnecessaryModifier Unnecessary modifier 'public' on class 'LoopDetectorText': the class is declared in an interface type 3 203
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 220
UnnecessaryModifier Unnecessary modifier 'public' on class 'SinkText': the class is declared in an interface type 3 245
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TextAnimation': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 262

org/opentrafficsim/draw/road/PriorityAnimation.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on field 'BOUNDS': the field is declared in an interface type 3 317

org/opentrafficsim/draw/road/StripeAnimation.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on enum 'Type': the enum is declared in an interface type 3 256

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 118

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 122