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 |
32 |
17 |
0 |
0 |
org.opentrafficsim.trafficcontrol.FixedTimeController$SignalGroup
Bug |
Category |
Details |
Line |
Priority |
org.opentrafficsim.trafficcontrol.FixedTimeController$SignalGroup defines clone() but doesn't implement Cloneable |
BAD_PRACTICE |
CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE |
375 |
High |
org.opentrafficsim.trafficcontrol.ccol.CCOL
Bug |
Category |
Details |
Line |
Priority |
Dead store to exception in org.opentrafficsim.trafficcontrol.ccol.CCOL.step() |
STYLE |
DLS_DEAD_LOCAL_STORE |
179 |
Medium |
Found reliance on default encoding in org.opentrafficsim.trafficcontrol.ccol.CCOL.setClientSocket(Socket): new java.io.InputStreamReader(InputStream) |
I18N |
DM_DEFAULT_ENCODING |
139 |
High |
Found reliance on default encoding in org.opentrafficsim.trafficcontrol.ccol.CCOL.setClientSocket(Socket): new java.io.PrintWriter(OutputStream) |
I18N |
DM_DEFAULT_ENCODING |
140 |
High |
new org.opentrafficsim.trafficcontrol.ccol.CCOL(String, String, Set, Set, DEVSSimulator) invokes Thread.start() |
MT_CORRECTNESS |
SC_START_IN_CTOR |
113 |
Medium |
org.opentrafficsim.trafficcontrol.trafcod.Diagram
Bug |
Category |
Details |
Line |
Priority |
Integer is incompatible with expected argument type Short in org.opentrafficsim.trafficcontrol.trafcod.Diagram.routePoint(int, Diagram$RouteStep[]) |
CORRECTNESS |
GC_UNRELATED_TYPES |
687 |
High |
org.opentrafficsim.trafficcontrol.trafcod.Diagram$2
Bug |
Category |
Details |
Line |
Priority |
Write to static field org.opentrafficsim.trafficcontrol.trafcod.Diagram.checkBoxPanel from instance method org.opentrafficsim.trafficcontrol.trafcod.Diagram$2.run() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
811 |
Medium |
org.opentrafficsim.trafficcontrol.trafcod.Diagram$RouteStep
Bug |
Category |
Details |
Line |
Priority |
Should org.opentrafficsim.trafficcontrol.trafcod.Diagram$RouteStep be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
415-518 |
Medium |
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.loadTextFromURL(URL): new java.io.InputStreamReader(InputStream) |
I18N |
DM_DEFAULT_ENCODING |
245 |
High |
Found reliance on default encoding in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.makeDisplay(URL): new java.io.InputStreamReader(InputStream) |
I18N |
DM_DEFAULT_ENCODING |
598 |
High |
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.evalRule(Object[]) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead |
PERFORMANCE |
DM_NUMBER_CTOR |
959 |
Medium |
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.parse(String, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead |
PERFORMANCE |
DM_NUMBER_CTOR |
1599 |
Medium |
v could be null and is guaranteed to be dereferenced in org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.notify(EventInterface) |
CORRECTNESS |
NP_GUARANTEED_DEREF |
1928 |
High |
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.loadTextFromURL(URL) may fail to close stream |
BAD_PRACTICE |
OS_OPEN_STREAM |
245 |
Medium |
org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.makeDisplay(URL) may fail to close stream |
BAD_PRACTICE |
OS_OPEN_STREAM |
598 |
Medium |
org.opentrafficsim.trafficcontrol.trafcod.Variable
Bug |
Category |
Details |
Line |
Priority |
Load of known null value in org.opentrafficsim.trafficcontrol.trafcod.Variable.cloneState(Variable, Network) |
STYLE |
NP_LOAD_OF_KNOWN_NULL_VALUE |
2463 |
Medium |
A known null value is checked to see if it is an instance of org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLight in org.opentrafficsim.trafficcontrol.trafcod.Variable.cloneState(Variable, Network) |
CORRECTNESS |
NP_NULL_INSTANCEOF |
2463 |
Medium |