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
19 10 0 0

org.opentrafficsim.trafficcontrol.trafcod.TrafCOD

Bug Category Details Line Priority
Found reliance on default encoding in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.makeDisplay(String, Set): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 430 High
Found reliance on default encoding in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.parseTrafCOD(String, Set, Set): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 203 High
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.parse(String, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 1383 Medium
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.makeDisplay(String, Set) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 430 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
Class org.opentrafficsim.trafficcontrol.trafcod.TrafCOD defines non-transient non-serializable instance field variablesInDefinitionOrder BAD_PRACTICE SE_BAD_FIELD Not available Medium
Useless object stored in variable row of method org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.parseTrafCOD(String, Set, Set) STYLE UC_USELESS_OBJECT 297 Medium

org.opentrafficsim.trafficcontrol.trafcod.TrafCODDemo$TrafCODModel

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in org.opentrafficsim.trafficcontrol.trafcod.TrafCODDemo$TrafCODModel.constructModel(SimulatorInterface) STYLE REC_CATCH_EXCEPTION 202 Medium

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