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.DisplayType 3
org.djutils.serialization.TypedObject 3
org.djutils.serialization.util.SerialDataDumper 1

org.djutils.serialization.DisplayType

Bug Category Details Line Priority
Exception thrown in class org.djutils.serialization.DisplayType at new org.djutils.serialization.DisplayType(SerializationUnits, 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.DisplayType.getByteCode(Unit) CORRECTNESS NP_NULL_ON_SOME_PATH 2125 High
Possible null pointer dereference of null in org.djutils.serialization.DisplayType.getIntCode(Unit) CORRECTNESS NP_NULL_ON_SOME_PATH 2112 High

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.util.SerialDataDumper

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