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
69 9 0 0

Files

Class Bugs
org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider 1
org.apache.johnzon.jsonb.JohnzonBuilder 3
org.apache.johnzon.jsonb.JsonbAccessMode 1
org.apache.johnzon.jsonb.JsonbAccessMode$2 1
org.apache.johnzon.jsonb.JsonbAccessMode$ReaderConverters$1 1
org.apache.johnzon.jsonb.extension.JsonValueWriter 1
org.apache.johnzon.jsonb.order.PerHierarchyAndLexicographicalOrderFieldComparator 1

org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider

Bug Category Details Line Priority
Inconsistent synchronization of org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.throwNoContentExceptionOnEmptyStreams; locked 80% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 92 Medium

org.apache.johnzon.jsonb.JohnzonBuilder

Bug Category Details Line Priority
Boxed value is unboxed and then immediately reboxed in org.apache.johnzon.jsonb.JohnzonBuilder.lambda$build$5(Object) PERFORMANCE BX_UNBOXING_IMMEDIATELY_REBOXED 147 Medium
Boxed value is unboxed and then immediately reboxed in org.apache.johnzon.jsonb.JohnzonBuilder.toBool(Object) PERFORMANCE BX_UNBOXING_IMMEDIATELY_REBOXED 377 Medium
Boxed value is unboxed and then immediately reboxed in org.apache.johnzon.jsonb.JohnzonBuilder.toInt(Object) PERFORMANCE BX_UNBOXING_IMMEDIATELY_REBOXED 381 Medium

org.apache.johnzon.jsonb.JsonbAccessMode

Bug Category Details Line Priority
Class<?> is incompatible with expected argument type org.apache.johnzon.mapper.internal.AdapterKey in org.apache.johnzon.jsonb.JsonbAccessMode.findFactory(Class, Function[]) CORRECTNESS GC_UNRELATED_TYPES 269 High

org.apache.johnzon.jsonb.JsonbAccessMode$2

Bug Category Details Line Priority
Return value of putIfAbsent is ignored, but fn is reused in org.apache.johnzon.jsonb.JsonbAccessMode$2.fromJson(JsonValue, Type, MappingParser) MT_CORRECTNESS RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED 326 High

org.apache.johnzon.jsonb.JsonbAccessMode$ReaderConverters$1

Bug Category Details Line Priority
Return value of putIfAbsent is ignored, but fn is reused in org.apache.johnzon.jsonb.JsonbAccessMode$ReaderConverters$1.fromJson(JsonValue, Type, MappingParser) MT_CORRECTNESS RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED 1123 High

org.apache.johnzon.jsonb.extension.JsonValueWriter

Bug Category Details Line Priority
Nullcheck of reader at line 61 of value previously dereferenced in org.apache.johnzon.jsonb.extension.JsonValueWriter.getResult() CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 61 Medium

org.apache.johnzon.jsonb.order.PerHierarchyAndLexicographicalOrderFieldComparator

Bug Category Details Line Priority
org.apache.johnzon.jsonb.order.PerHierarchyAndLexicographicalOrderFieldComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 25 Medium