SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
173 14 0 0

Files

Class Bugs
org.apache.johnzon.mapper.JohnzonCores 1
org.apache.johnzon.mapper.JohnzonCores$Snippets 1
org.apache.johnzon.mapper.Mapper 4
org.apache.johnzon.mapper.MapperConfig 1
org.apache.johnzon.mapper.MappingGeneratorImpl 2
org.apache.johnzon.mapper.MappingParserImpl 2
org.apache.johnzon.mapper.access.FieldAndMethodAccessMode 1
org.apache.johnzon.mapper.map.LazyConverterMap 2

org.apache.johnzon.mapper.JohnzonCores

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in org.apache.johnzon.mapper.JohnzonCores.<static initializer for JohnzonCores>() STYLE REC_CATCH_EXCEPTION 44 Medium

org.apache.johnzon.mapper.JohnzonCores$Snippets

Bug Category Details Line Priority
Private method org.apache.johnzon.mapper.JohnzonCores$Snippets.of(int, JsonGeneratorFactory) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 81 Medium

org.apache.johnzon.mapper.Mapper

Bug Category Details Line Priority
Nullcheck of reader at line 347 of value previously dereferenced in org.apache.johnzon.mapper.Mapper.readJsonArray(JsonParser) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 347 Medium
Nullcheck of reader at line 360 of value previously dereferenced in org.apache.johnzon.mapper.Mapper.readJsonArray(InputStream) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 359 Medium
Nullcheck of reader at line 341 of value previously dereferenced in org.apache.johnzon.mapper.Mapper.readJsonArray(Reader) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 341 Medium
Nullcheck of stream at line 171 of value previously dereferenced in org.apache.johnzon.mapper.Mapper.writeObject(Object, Writer) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 170 Medium

org.apache.johnzon.mapper.MapperConfig

Bug Category Details Line Priority
Class org.apache.johnzon.mapper.MapperConfig implements Cloneable but does not define or use clone method BAD_PRACTICE CN_IDIOM 49 Medium

org.apache.johnzon.mapper.MappingGeneratorImpl

Bug Category Details Line Priority
Load of known null value in org.apache.johnzon.mapper.MappingGeneratorImpl.writeValue(Class, boolean, boolean, boolean, boolean, boolean, Adapter, String, Object, ObjectConverter$Writer, Collection, JsonPointerTracker, JsonGenerator) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 484 Medium
Useless condition: it's known that writeBody == true at this point STYLE UC_USELESS_CONDITION 175 High

org.apache.johnzon.mapper.MappingParserImpl

Bug Category Details Line Priority
Return value of putIfAbsent is ignored, but method is reused in org.apache.johnzon.mapper.MappingParserImpl.convertTo(Type, String) MT_CORRECTNESS RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED 1141 High
Return value of putIfAbsent is ignored, but adapterKey is reused in org.apache.johnzon.mapper.MappingParserImpl.getAdapterKey(Adapter) MT_CORRECTNESS RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED 585 Medium

org.apache.johnzon.mapper.access.FieldAndMethodAccessMode

Bug Category Details Line Priority
Useless condition: it's known that record == false at this point STYLE UC_USELESS_CONDITION 111 High

org.apache.johnzon.mapper.map.LazyConverterMap

Bug Category Details Line Priority
org.apache.johnzon.mapper.map.LazyConverterMap doesn't override java.util.concurrent.ConcurrentHashMap.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium
Class org.apache.johnzon.mapper.map.LazyConverterMap defines non-transient non-serializable instance field dateTimeFormatter BAD_PRACTICE SE_BAD_FIELD Medium