FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
10 12 0 0

org.opentrafficsim.trafficcontrol.trafcod.TrafCOD

Bug Category Details Line Priority
Found reliance on default encoding in new org.opentrafficsim.trafficcontrol.trafcod.TrafCOD(String, String, Set, Set, DEVSSimulator): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 164 High
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.parse(String, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 1115 Medium
Class org.opentrafficsim.trafficcontrol.trafcod.TrafCOD defines non-transient non-serializable instance field detectors BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.opentrafficsim.trafficcontrol.trafcod.TrafCOD defines non-transient non-serializable instance field variables BAD_PRACTICE SE_BAD_FIELD Not available Medium
Useless object stored in variable row of method new org.opentrafficsim.trafficcontrol.trafcod.TrafCOD(String, String, Set, Set, DEVSSimulator) STYLE UC_USELESS_OBJECT 256 Medium
new org.opentrafficsim.trafficcontrol.trafcod.TrafCOD(String, String, Set, Set, DEVSSimulator) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 361 Medium

org.opentrafficsim.trafficcontrol.trafcod.TrafCOD$1

Bug Category Details Line Priority
Impossible downcast from org.opentrafficsim.core.network.OTSLink to org.opentrafficsim.road.network.lane.CrossSectionLink in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD$1.constructModel(SimulatorInterface) CORRECTNESS BC_IMPOSSIBLE_DOWNCAST 1350 High
Dead store to d082 in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD$1.constructModel(SimulatorInterface) STYLE DLS_DEAD_LOCAL_STORE 1353 High
Dead store to linkWX in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD$1.constructModel(SimulatorInterface) STYLE DLS_DEAD_LOCAL_STORE 1346 High
Dead store to linkXE in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD$1.constructModel(SimulatorInterface) STYLE DLS_DEAD_LOCAL_STORE 1347 High
Dead store to linkXN in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD$1.constructModel(SimulatorInterface) STYLE DLS_DEAD_LOCAL_STORE 1345 High

org.opentrafficsim.trafficcontrol.trafcod.Variable

Bug Category Details Line Priority
Unused field: org.opentrafficsim.trafficcontrol.trafcod.Variable.listPos PERFORMANCE UUF_UNUSED_FIELD Not available Medium