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 |
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
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 |