SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.8

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
15 4 0 0

Files

Class Bugs
org.apache.johnzon.jaxrs.DelegateProvider 1
org.apache.johnzon.jaxrs.JohnzonMessageBodyReader 1
org.apache.johnzon.jaxrs.JohnzonMessageBodyWriter 1
org.apache.johnzon.jaxrs.WadlDocumentMessageBodyWriter 1

org.apache.johnzon.jaxrs.DelegateProvider

Bug Category Details Line Priority
Exception thrown in class org.apache.johnzon.jaxrs.DelegateProvider at new org.apache.johnzon.jaxrs.DelegateProvider(MessageBodyReader, MessageBodyWriter) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 38 Medium

org.apache.johnzon.jaxrs.JohnzonMessageBodyReader

Bug Category Details Line Priority
new org.apache.johnzon.jaxrs.JohnzonMessageBodyReader(Mapper, Collection) may expose internal representation by storing an externally mutable object into JohnzonMessageBodyReader.mapper MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

org.apache.johnzon.jaxrs.JohnzonMessageBodyWriter

Bug Category Details Line Priority
new org.apache.johnzon.jaxrs.JohnzonMessageBodyWriter(Mapper, Collection) may expose internal representation by storing an externally mutable object into JohnzonMessageBodyWriter.mapper MALICIOUS_CODE EI_EXPOSE_REP2 54 Medium

org.apache.johnzon.jaxrs.WadlDocumentMessageBodyWriter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.johnzon.jaxrs.WadlDocumentMessageBodyWriter.writeTo(Document, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream): String.getBytes() I18N DM_DEFAULT_ENCODING 62 High