The following document contains the results of SpotBugs
SpotBugs Version is 4.7.1
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
34 | 13 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.AbstractIdTransceiver(OTSNetwork, String) may expose internal representation by storing an externally mutable object into AbstractIdTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.CrossSectionElementTransceiver(OTSNetwork) may expose internal representation by storing an externally mutable object into CrossSectionElementTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 49 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.GTUTransceiver(OTSNetwork, GTUIdTransceiver) may expose internal representation by storing an externally mutable object into GTUTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.LaneGTUIdTransceiver(OTSNetwork) may expose internal representation by storing an externally mutable object into LaneGTUIdTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.LinkGTUIdTransceiver(OTSNetwork) may expose internal representation by storing an externally mutable object into LinkGTUIdTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.LinkTransceiver(OTSNetwork, LinkIdTransceiver) may expose internal representation by storing an externally mutable object into LinkTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 54 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.NodeTransceiver(OTSNetwork, NodeIdTransceiver) may expose internal representation by storing an externally mutable object into NodeTransceiver.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 50 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.Publisher(OTSNetwork, List, List) may expose internal representation by storing an externally mutable object into Publisher.network | MALICIOUS_CODE | EI_EXPOSE_REP2 | 89 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.sim0mq.publisher.ReturnWrapperImpl(ZContext, Object[], Map) may expose internal representation by storing an externally mutable object into ReturnWrapperImpl.socketMap | MALICIOUS_CODE | EI_EXPOSE_REP2 | 75 | Medium |
new org.opentrafficsim.sim0mq.publisher.ReturnWrapperImpl(ZContext, Object[], Map) may expose internal representation by storing an externally mutable object into ReturnWrapperImpl.zContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 74 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of SubscriptionHandler.listTransceiver in org.opentrafficsim.sim0mq.publisher.SubscriptionHandler.executeCommand(SubscriptionHandler$Command, Object[], ReturnWrapper) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 410 | High |
Possible null pointer dereference of SubscriptionHandler.listTransceiver in org.opentrafficsim.sim0mq.publisher.SubscriptionHandler.executeCommand(SubscriptionHandler$Command, Object[], ReturnWrapper) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 419 | High |
Nullcheck of SubscriptionHandler.listTransceiver at line 463 of value previously dereferenced in org.opentrafficsim.sim0mq.publisher.SubscriptionHandler.executeCommand(SubscriptionHandler$Command, Object[], ReturnWrapper) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 455 | Medium |