SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.1

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
34 13 0 0

Files

Class Bugs
org.opentrafficsim.sim0mq.publisher.AbstractIdTransceiver 1
org.opentrafficsim.sim0mq.publisher.CrossSectionElementTransceiver 1
org.opentrafficsim.sim0mq.publisher.GTUTransceiver 1
org.opentrafficsim.sim0mq.publisher.LaneGTUIdTransceiver 1
org.opentrafficsim.sim0mq.publisher.LinkGTUIdTransceiver 1
org.opentrafficsim.sim0mq.publisher.LinkTransceiver 1
org.opentrafficsim.sim0mq.publisher.NodeTransceiver 1
org.opentrafficsim.sim0mq.publisher.Publisher 1
org.opentrafficsim.sim0mq.publisher.ReturnWrapperImpl 2
org.opentrafficsim.sim0mq.publisher.SubscriptionHandler 3

org.opentrafficsim.sim0mq.publisher.AbstractIdTransceiver

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

org.opentrafficsim.sim0mq.publisher.CrossSectionElementTransceiver

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

org.opentrafficsim.sim0mq.publisher.GTUTransceiver

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

org.opentrafficsim.sim0mq.publisher.LaneGTUIdTransceiver

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

org.opentrafficsim.sim0mq.publisher.LinkGTUIdTransceiver

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

org.opentrafficsim.sim0mq.publisher.LinkTransceiver

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

org.opentrafficsim.sim0mq.publisher.NodeTransceiver

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

org.opentrafficsim.sim0mq.publisher.Publisher

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

org.opentrafficsim.sim0mq.publisher.ReturnWrapperImpl

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

org.opentrafficsim.sim0mq.publisher.SubscriptionHandler

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