The following document contains the results of PMD 5.1.2.
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'lane'. | 63 |
| Avoid unused local variables such as 'car'. | 158 |
| Violation | Line |
|---|---|
| Useless parentheses. | 207 |
| Avoid empty if statements | 424–435 |
| Avoid unused private methods such as 'headwayRecursiveForwardSI(Lane,double,double,double,DoubleScalar.Abs)'. | 688–689 |
| Avoid unused private methods such as 'headwayRecursiveBackwardSI(Lane,double,double,double,DoubleScalar.Abs)'. | 751–752 |
| Avoid unused private methods such as 'headwayRecursiveBackwardSI(Lane,double,LaneBasedGTU,double,double,DoubleScalar.Abs)'. | 938–939 |
| Avoid empty catch blocks | 1227–1230 |
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'n'. | 152 |
| Avoid unused local variables such as 'n'. | 181 |
| Avoid empty if statements | 319–323 |
| Avoid empty if statements | 325–329 |
| Avoid unused local variables such as 'link'. | 345 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'id'. | 45 |
| Avoid unused private fields such as 'nodeSet'. | 50 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'makeLane(CrossSectionLink,LaneType,DoubleScalar.Rel,Rel,DoubleScalar.Rel,OTSDEVSSimulatorInterface)'. | 99–101 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'linkIdClass'. | 69 |
| An operation on an Immutable object (String, BigDecimal or BigInteger) wont change the object itself | 221 |
| Avoid unused local variables such as 'speed'. | 262 |
| An operation on an Immutable object (String, BigDecimal or BigInteger) wont change the object itself | 286 |
| An operation on an Immutable object (String, BigDecimal or BigInteger) wont change the object itself | 293 |
| Avoid unused private methods such as 'eatSpeedRel(StringBuilder,String)'. | 572 |
| Avoid unused private methods such as 'eatLengthAbs(StringBuilder,String)'. | 618 |
| Avoid unused method parameters such as 'elements'. | 712 |
| Avoid unused local variables such as 'n'. | 744 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'org.opentrafficsim.core.dsol.OTSAnimatorInterface' | 13 |
| Avoid unused local variables such as 'n'. | 57 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'nl.tudelft.simulation.dsol.ModelInterface' | 7 |
| Violation | Line |
|---|---|
| Useless parentheses. | 652 |
| Useless parentheses. | 1101 |
| Avoid unused local variables such as 'roadMarkers'. | 1177 |
| Useless parentheses. | 1232 |
| Useless parentheses. | 1238 |
| Avoid unused local variables such as 'n'. | 2001 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'generators'. | 26 |
| Violation | Line |
|---|---|
| Too many static imports may lead to messy code | 1–155 |
| Violation | Line |
|---|---|
| Too many static imports may lead to messy code | 1–249 |
| Violation | Line |
|---|---|
| Too many static imports may lead to messy code | 1–177 |
| Violation | Line |
|---|---|
| Too many static imports may lead to messy code | 1–114 |
| Violation | Line |
|---|---|
| Too many static imports may lead to messy code | 1–186 |
| Violation | Line |
|---|---|
| Too many static imports may lead to messy code | 1–223 |
| Violation | Line |
|---|---|
| Avoid using a branching statement as the last in a loop. | 209 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'incrementValueByValue(DoubleMatrix)'. | 1024 |
| Avoid unused private methods such as 'decrementValueByValue(DoubleMatrix)'. | 1044 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'incrementValueByValue(DoubleVector)'. | 1018 |
| Avoid unused private methods such as 'decrementValueByValue(DoubleVector)'. | 1035 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'incrementValueByValue(FloatMatrix)'. | 1022 |
| Avoid unused private methods such as 'decrementValueByValue(FloatMatrix)'. | 1042 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'incrementValueByValue(FloatVector)'. | 1018 |
| Avoid unused private methods such as 'decrementValueByValue(FloatVector)'. | 1035 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'configureAxis(ValueAxis,Axis)'. | 298 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'org.opentrafficsim.importexport.osm.Link' | 39 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 99 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 227 |
| Avoid unused private methods such as 'calculateOffsets(SortedMap,org.opentrafficsim.importexport.osm.Link,Integer,Integer)'. | 438–439 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 439 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 529 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 637 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 639 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 643 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 644 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 648 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 664 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 698 |
| Unnecessary use of fully qualified name 'org.opentrafficsim.importexport.osm.Link' due to existing import 'org.opentrafficsim.importexport.osm.Link' | 699 |