PMD Results
The following document contains the results of PMD 5.1.2.
Files
org/opentrafficsim/core/geometry/OTSPoint3D.java
Violation |
Line |
Useless parentheses. |
68 |
Useless parentheses. |
121 |
org/opentrafficsim/core/network/factory/xml/units/AngleUnits.java
Violation |
Line |
These nested if statements could be combined |
48–51 |
org/opentrafficsim/core/network/factory/xml/units/LengthUnits.java
Violation |
Line |
These nested if statements could be combined |
72–75 |
These nested if statements could be combined |
139–142 |
org/opentrafficsim/core/network/factory/xml/units/SpeedUnits.java
Violation |
Line |
These nested if statements could be combined |
49–52 |
org/opentrafficsim/core/network/factory/xml/units/TimeUnits.java
Violation |
Line |
These nested if statements could be combined |
71–74 |
These nested if statements could be combined |
138–141 |
org/opentrafficsim/core/network/route/CompleteRoute.java
Violation |
Line |
These nested if statements could be combined |
49–53 |
org/opentrafficsim/core/units/distributions/ContinuousDistDoubleScalar.java
Violation |
Line |
Avoid modifiers which are implied by the context |
52–163 |
Avoid modifiers which are implied by the context |
170–281 |
org/opentrafficsim/core/units/distributions/ContinuousDistFloatScalar.java
Violation |
Line |
Avoid modifiers which are implied by the context |
52–165 |
Avoid modifiers which are implied by the context |
172–285 |
org/opentrafficsim/core/units/distributions/DiscreteDistDoubleScalar.java
Violation |
Line |
Avoid modifiers which are implied by the context |
78–189 |
Avoid modifiers which are implied by the context |
196–307 |
org/opentrafficsim/core/units/distributions/DiscreteDistFloatScalar.java
Violation |
Line |
Avoid modifiers which are implied by the context |
52–165 |
Avoid modifiers which are implied by the context |
172–285 |
org/opentrafficsim/core/units/distributions/OTS_DOUBLE_DIST.java
Violation |
Line |
Avoid modifiers which are implied by the context |
18–21 |
Avoid modifiers which are implied by the context |
24–27 |
org/opentrafficsim/core/units/distributions/OTS_FLOAT_DIST.java
Violation |
Line |
Avoid modifiers which are implied by the context |
18–21 |
Avoid modifiers which are implied by the context |
24–27 |
org/opentrafficsim/gui/OTSControlPanel.java
Violation |
Line |
Avoid unused imports such as 'java.rmi.RemoteException' |
14 |
Avoid unused private methods such as 'scheduleEvent(Time.Abs,short,Object,Object,String,Object)'. |
178–179 |