SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.1

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
81 7 0 0

Files

Class Bugs
org.djutils.serialization.TypedObject 3
org.djutils.serialization.UnitType 3
org.djutils.serialization.util.SerialDataDumper 1

org.djutils.serialization.TypedObject

Bug Category Details Line Priority
org.djutils.serialization.TypedObject.ENCODERS is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 56 Medium
org.djutils.serialization.TypedObject.OBJECT_DECODERS is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 62 Medium
org.djutils.serialization.TypedObject.PRIMITIVE_DATA_DECODERS is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 59 Medium

org.djutils.serialization.UnitType

Bug Category Details Line Priority
Exception thrown in class org.djutils.serialization.UnitType at new org.djutils.serialization.UnitType(QuantityType, int, Unit, String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 2011 Medium
Possible null pointer dereference of null in org.djutils.serialization.UnitType.getByteCode(Unit) CORRECTNESS NP_NULL_ON_SOME_PATH 2125 High
Possible null pointer dereference of null in org.djutils.serialization.UnitType.getIntCode(Unit) CORRECTNESS NP_NULL_ON_SOME_PATH 2112 High

org.djutils.serialization.util.SerialDataDumper

Bug Category Details Line Priority
Found reliance on default encoding in org.djutils.serialization.util.SerialDataDumper.serialDataDumper(Endianness, int, byte[]): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 68 High