PMD Results

The following document contains the results of PMD 7.7.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 66

org/opentrafficsim/draw/TextWidth.java

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

org/opentrafficsim/draw/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/draw/graphs/ContourDataSource.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 425
UselessQualifiedThis Useless qualified this usage in the same class. 433
UselessQualifiedThis Useless qualified this usage in the same class. 457
UselessQualifiedThis Useless qualified this usage in the same class. 659

org/opentrafficsim/draw/graphs/OffsetTrajectory.java

Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 126

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 216

org/opentrafficsim/draw/network/NodeAnimation.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 53

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 121

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

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

org/opentrafficsim/draw/road/BusStopAnimation.java

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

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 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 100

org/opentrafficsim/draw/road/LaneAnimation.java

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

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

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

org/opentrafficsim/draw/road/TrafficLightAnimation.java

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

org/opentrafficsim/draw/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/draw/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/draw/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/draw/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/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 121

org/opentrafficsim/draw/graphs/ContourDataSource.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 425
UselessQualifiedThis Useless qualified this usage in the same class. 3 433
UselessQualifiedThis Useless qualified this usage in the same class. 3 457
UselessQualifiedThis Useless qualified this usage in the same class. 3 659

org/opentrafficsim/draw/graphs/OffsetTrajectory.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 126

org/opentrafficsim/draw/gtu/DefaultCarAnimation.java

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

org/opentrafficsim/draw/network/NodeAnimation.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 53

org/opentrafficsim/draw/road/BusStopAnimation.java

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

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 'RenderableTextSource': 'RENDERWHEN10' is already in scope because it is inherited by an enclosing type 4 100

org/opentrafficsim/draw/road/LaneAnimation.java

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

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

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

org/opentrafficsim/draw/road/TrafficLightAnimation.java

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

org/opentrafficsim/draw/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