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
214 36 0 0

org.joda.beans.gen.BeanCodeGen

Bug Category Details Line Priority
new org.joda.beans.gen.BeanCodeGen(List, BeanGenConfig, int, boolean) may expose internal representation by storing an externally mutable object into BeanCodeGen.config MALICIOUS_CODE EI_EXPOSE_REP2 237 Medium
new org.joda.beans.gen.BeanCodeGen(List, BeanGenConfig, int, boolean) may expose internal representation by storing an externally mutable object into BeanCodeGen.files MALICIOUS_CODE EI_EXPOSE_REP2 236 Medium

org.joda.beans.gen.BeanGenConfig

Bug Category Details Line Priority
org.joda.beans.gen.BeanGenConfig.getBuilderGenerators() may expose internal representation by returning BeanGenConfig.builderGenerators MALICIOUS_CODE EI_EXPOSE_REP 317 Medium
org.joda.beans.gen.BeanGenConfig.getBuilderTypes() may expose internal representation by returning BeanGenConfig.builderTypes MALICIOUS_CODE EI_EXPOSE_REP 326 Medium
org.joda.beans.gen.BeanGenConfig.getCopyGenerators() may expose internal representation by returning BeanGenConfig.copyGenerators MALICIOUS_CODE EI_EXPOSE_REP 308 Medium
org.joda.beans.gen.BeanGenConfig.getImmutableGetClones() may expose internal representation by returning BeanGenConfig.immutableGetClones MALICIOUS_CODE EI_EXPOSE_REP 353 Medium
org.joda.beans.gen.BeanGenConfig.getImmutableVarArgs() may expose internal representation by returning BeanGenConfig.immutableVarArgs MALICIOUS_CODE EI_EXPOSE_REP 344 Medium
org.joda.beans.gen.BeanGenConfig.getInvalidImmutableTypes() may expose internal representation by returning BeanGenConfig.invalidImmutableTypes MALICIOUS_CODE EI_EXPOSE_REP 335 Medium

org.joda.beans.impl.BasicProperty

Bug Category Details Line Priority
org.joda.beans.impl.BasicProperty.metaProperty() may expose internal representation by returning BasicProperty.metaProperty MALICIOUS_CODE EI_EXPOSE_REP 77 Medium

org.joda.beans.impl.BufferingBeanBuilder

Bug Category Details Line Priority
org.joda.beans.impl.BufferingBeanBuilder.getBuffer() may expose internal representation by returning BufferingBeanBuilder.buffer MALICIOUS_CODE EI_EXPOSE_REP 89 Medium

org.joda.beans.impl.direct.DirectMetaBean

Bug Category Details Line Priority
Comparison of String parameter using == or != in org.joda.beans.impl.direct.DirectMetaBean.metaPropertyNotFound(String) BAD_PRACTICE ES_COMPARING_PARAMETER_STRING_WITH_EQ 54 Medium

org.joda.beans.impl.direct.DirectMetaPropertyMap

Bug Category Details Line Priority
org.joda.beans.impl.direct.DirectMetaPropertyMap.entrySet() may expose internal representation by returning DirectMetaPropertyMap.entries MALICIOUS_CODE EI_EXPOSE_REP 145 Medium
org.joda.beans.impl.direct.DirectMetaPropertyMap.keySet() may expose internal representation by returning DirectMetaPropertyMap.keys MALICIOUS_CODE EI_EXPOSE_REP 135 Medium
org.joda.beans.impl.direct.DirectMetaPropertyMap.values() may expose internal representation by returning DirectMetaPropertyMap.values MALICIOUS_CODE EI_EXPOSE_REP 140 Medium

org.joda.beans.impl.direct.DirectMetaPropertyMap$Entries$1

Bug Category Details Line Priority
org.joda.beans.impl.direct.DirectMetaPropertyMap$Entries$1.next() cannot throw NoSuchElementException BAD_PRACTICE IT_NO_SUCH_ELEMENT 239 Medium

org.joda.beans.impl.direct.MinimalMetaBean

Bug Category Details Line Priority
org.joda.beans.impl.direct.MinimalMetaBean.metaPropertyMap() may expose internal representation by returning MinimalMetaBean.metaPropertyMap MALICIOUS_CODE EI_EXPOSE_REP 318 Medium

org.joda.beans.impl.flexi.FlexiBean

Bug Category Details Line Priority
org.joda.beans.impl.flexi.FlexiBean defines clone() but doesn't implement Cloneable BAD_PRACTICE CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE 439 High

org.joda.beans.impl.light.LightMetaBean

Bug Category Details Line Priority
org.joda.beans.impl.light.LightMetaBean.metaPropertyMap() may expose internal representation by returning LightMetaBean.metaPropertyMap MALICIOUS_CODE EI_EXPOSE_REP 611 Medium
org.joda.beans.impl.light.LightMetaBean.findConstructor(Class, List) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 508 Medium

org.joda.beans.impl.map.MapBean

Bug Category Details Line Priority
org.joda.beans.impl.map.MapBean.clone() does not call super.clone() BAD_PRACTICE CN_IDIOM_NO_SUPER_CALL 99 Medium

org.joda.beans.impl.reflection.ReflectiveMetaBean

Bug Category Details Line Priority
org.joda.beans.impl.reflection.ReflectiveMetaBean.metaPropertyMap() may expose internal representation by returning ReflectiveMetaBean.metaPropertyMap MALICIOUS_CODE EI_EXPOSE_REP 111 Medium

org.joda.beans.impl.reflection.ReflectiveMetaProperty

Bug Category Details Line Priority
Possible null pointer dereference of getMethod in new org.joda.beans.impl.reflection.ReflectiveMetaProperty(MetaBean, Class, String) CORRECTNESS NP_NULL_ON_SOME_PATH 87 High

org.joda.beans.ser.SerDeserializers

Bug Category Details Line Priority
org.joda.beans.ser.SerDeserializers.findDeserializer(Class) may expose internal representation by returning SerDeserializers.defaultDeserializer MALICIOUS_CODE EI_EXPOSE_REP 180 Medium
org.joda.beans.ser.SerDeserializers.getDeserializers() may expose internal representation by returning SerDeserializers.deserializers MALICIOUS_CODE EI_EXPOSE_REP 145 Medium

org.joda.beans.ser.SerOptional

Bug Category Details Line Priority
org.joda.beans.ser.SerOptional.<static initializer for SerOptional>() might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 45 Medium
Exception is caught when Exception is not thrown in org.joda.beans.ser.SerOptional.<static initializer for SerOptional>() STYLE REC_CATCH_EXCEPTION 45 Medium

org.joda.beans.ser.bin.AbstractBinWriter

Bug Category Details Line Priority
Load of known null value in org.joda.beans.ser.bin.AbstractBinWriter.writeMap(SerIterator) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 151 Medium

org.joda.beans.ser.json.JodaBeanJsonWriter

Bug Category Details Line Priority
Load of known null value in org.joda.beans.ser.json.JodaBeanJsonWriter.writeMapComplex(SerIterator) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 282 Medium

org.joda.beans.ser.xml.JodaBeanXmlWriter

Bug Category Details Line Priority
org.joda.beans.ser.xml.JodaBeanXmlWriter.writeToBuilder(Bean, boolean) may expose internal representation by returning JodaBeanXmlWriter.builder MALICIOUS_CODE EI_EXPOSE_REP 167 Medium
new org.joda.beans.ser.xml.JodaBeanXmlWriter(JodaBeanSer, StringBuilder) may expose internal representation by storing an externally mutable object into JodaBeanXmlWriter.builder MALICIOUS_CODE EI_EXPOSE_REP2 111 Medium
Load of known null value in org.joda.beans.ser.xml.JodaBeanXmlWriter.convertToString(StringConverter, Object, String) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 344 Medium
Load of known null value in org.joda.beans.ser.xml.JodaBeanXmlWriter.writeKeyElement(String, Object, SerIterator) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 355 Medium

org.joda.beans.test.BeanAssert

Bug Category Details Line Priority
org.joda.beans.test.BeanAssert.buildMessage(List, String, Object, Object, double) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 242 Medium

org.joda.beans.test.JodaBeanTests

Bug Category Details Line Priority
org.joda.beans.test.JodaBeanTests.<static initializer for JodaBeanTests>() might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 429 Medium
org.joda.beans.test.JodaBeanTests.coverProperties(Bean) invokes inefficient new String(String) constructor PERFORMANCE DM_STRING_CTOR 180 Medium
Exception is caught when Exception is not thrown in org.joda.beans.test.JodaBeanTests.<static initializer for JodaBeanTests>() STYLE REC_CATCH_EXCEPTION 429 Medium

Back to top

Version: 2.10.0. Last Published: 2023-09-11.

Reflow Maven skin.