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 4851

org/opentrafficsim/core/network/factory/xml/units/LengthUnits.java

Violation Line
These nested if statements could be combined 7275
These nested if statements could be combined 139142

org/opentrafficsim/core/network/factory/xml/units/SpeedUnits.java

Violation Line
These nested if statements could be combined 4952

org/opentrafficsim/core/network/factory/xml/units/TimeUnits.java

Violation Line
These nested if statements could be combined 7174
These nested if statements could be combined 138141

org/opentrafficsim/core/network/route/CompleteRoute.java

Violation Line
These nested if statements could be combined 4953

org/opentrafficsim/core/units/distributions/ContinuousDistDoubleScalar.java

Violation Line
Avoid modifiers which are implied by the context 52163
Avoid modifiers which are implied by the context 170281

org/opentrafficsim/core/units/distributions/ContinuousDistFloatScalar.java

Violation Line
Avoid modifiers which are implied by the context 52165
Avoid modifiers which are implied by the context 172285

org/opentrafficsim/core/units/distributions/DiscreteDistDoubleScalar.java

Violation Line
Avoid modifiers which are implied by the context 78189
Avoid modifiers which are implied by the context 196307

org/opentrafficsim/core/units/distributions/DiscreteDistFloatScalar.java

Violation Line
Avoid modifiers which are implied by the context 52165
Avoid modifiers which are implied by the context 172285

org/opentrafficsim/core/units/distributions/OTS_DOUBLE_DIST.java

Violation Line
Avoid modifiers which are implied by the context 1821
Avoid modifiers which are implied by the context 2427

org/opentrafficsim/core/units/distributions/OTS_FLOAT_DIST.java

Violation Line
Avoid modifiers which are implied by the context 1821
Avoid modifiers which are implied by the context 2427

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)'. 178179