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
59 8 0 0

Files

Class Bugs
org.opentrafficsim.base.HierarchicalType 1
org.opentrafficsim.base.TimeStampedObject 2
org.opentrafficsim.base.parameters.ParameterSet 1
org.opentrafficsim.base.parameters.constraint.CollectionConstraint 1
org.opentrafficsim.base.parameters.constraint.MultiConstraint 1
org.opentrafficsim.base.parameters.constraint.NumericConstraint 1
org.opentrafficsim.base.parameters.constraint.SubCollectionConstraint 1

org.opentrafficsim.base.HierarchicalType

Bug Category Details Line Priority
org.opentrafficsim.base.HierarchicalType.getChildren() may expose internal representation by returning HierarchicalType.children MALICIOUS_CODE EI_EXPOSE_REP 87 Medium

org.opentrafficsim.base.TimeStampedObject

Bug Category Details Line Priority
org.opentrafficsim.base.TimeStampedObject.getTimestamp() may expose internal representation by returning TimeStampedObject.timestamp MALICIOUS_CODE EI_EXPOSE_REP 54 Medium
new org.opentrafficsim.base.TimeStampedObject(Object, Time) may expose internal representation by storing an externally mutable object into TimeStampedObject.timestamp MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium

org.opentrafficsim.base.parameters.ParameterSet

Bug Category Details Line Priority
org.opentrafficsim.base.parameters.ParameterSet.setAllOneByOne(Parameters) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 296 Medium

org.opentrafficsim.base.parameters.constraint.CollectionConstraint

Bug Category Details Line Priority
new org.opentrafficsim.base.parameters.constraint.CollectionConstraint(Collection) may expose internal representation by storing an externally mutable object into CollectionConstraint.objects MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.opentrafficsim.base.parameters.constraint.MultiConstraint

Bug Category Details Line Priority
new org.opentrafficsim.base.parameters.constraint.MultiConstraint(Set) may expose internal representation by storing an externally mutable object into MultiConstraint.constraints MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium

org.opentrafficsim.base.parameters.constraint.NumericConstraint

Bug Category Details Line Priority
Return value of String.format(String, Object[]) ignored in new org.opentrafficsim.base.parameters.constraint.NumericConstraint(String, int, String) CORRECTNESS RV_RETURN_VALUE_IGNORED 101 Medium

org.opentrafficsim.base.parameters.constraint.SubCollectionConstraint

Bug Category Details Line Priority
new org.opentrafficsim.base.parameters.constraint.SubCollectionConstraint(Collection) may expose internal representation by storing an externally mutable object into SubCollectionConstraint.objects MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium