SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.8.6
Threshold is medium
Effort is default
Summary
Classes |
Bugs |
Errors |
Missing Classes |
10 |
17 |
0 |
0 |
org.opentrafficsim.sim0mq.kpi.LaneDataSim0
Bug |
Category |
Details |
Line |
Priority |
org.opentrafficsim.sim0mq.kpi.LaneDataSim0.getLength() may expose internal representation by returning LaneDataSim0.length |
MALICIOUS_CODE |
EI_EXPOSE_REP |
43 |
Medium |
org.opentrafficsim.sim0mq.kpi.LaneDataSim0.getLinkData() may expose internal representation by returning LaneDataSim0.linkData |
MALICIOUS_CODE |
EI_EXPOSE_REP |
50 |
Medium |
new org.opentrafficsim.sim0mq.kpi.LaneDataSim0(LinkDataSim0, String, Length) may expose internal representation by storing an externally mutable object into LaneDataSim0.length |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
35 |
Medium |
new org.opentrafficsim.sim0mq.kpi.LaneDataSim0(LinkDataSim0, String, Length) may expose internal representation by storing an externally mutable object into LaneDataSim0.linkData |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
33 |
Medium |
org.opentrafficsim.sim0mq.kpi.LaneDataSim0.setLinkData(LinkDataSim0) may expose internal representation by storing an externally mutable object into LaneDataSim0.linkData |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
73 |
Medium |
org.opentrafficsim.sim0mq.kpi.LinkDataSim0
Bug |
Category |
Details |
Line |
Priority |
org.opentrafficsim.sim0mq.kpi.LinkDataSim0.getLaneDatas() may expose internal representation by returning LinkDataSim0.laneDataList |
MALICIOUS_CODE |
EI_EXPOSE_REP |
63 |
Medium |
org.opentrafficsim.sim0mq.kpi.LinkDataSim0.getLength() may expose internal representation by returning LinkDataSim0.length |
MALICIOUS_CODE |
EI_EXPOSE_REP |
70 |
Medium |
new org.opentrafficsim.sim0mq.kpi.LinkDataSim0(String, String, String, Length) may expose internal representation by storing an externally mutable object into LinkDataSim0.length |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
45 |
Medium |
org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver
Bug |
Category |
Details |
Line |
Priority |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field meanSpeed |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field meanTravelTimePerKm |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field meanTripLength |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field totalDelay |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field totalNumberOfStops |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field totalTravelDistance |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
Class org.opentrafficsim.sim0mq.kpi.Sim0mqKpiTransceiver defines non-transient non-serializable instance field totalTravelTime |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.opentrafficsim.sim0mq.kpi.Sim0mqSampler
Bug |
Category |
Details |
Line |
Priority |
Unread field: org.opentrafficsim.sim0mq.kpi.Sim0mqSampler.lastTimestamp |
PERFORMANCE |
URF_UNREAD_FIELD |
30 |
Medium |
Unused field: org.opentrafficsim.sim0mq.kpi.Sim0mqSampler.sim0mqKpiTransceiver |
PERFORMANCE |
UUF_UNUSED_FIELD |
Not available |
Medium |