SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.0.4

Threshold is

Effort is default

Summary

Classes Bugs Errors Missing Classes
117 6 0 3

Files

Class Bugs
org.apache.log4j.WriterAppender 2
org.apache.log4j.bridge.LayoutAdapter 3
org.apache.log4j.spi.ThrowableInformation 1

org.apache.log4j.WriterAppender

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.log4j.WriterAppender(Layout, OutputStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 81 High
Found reliance on default encoding in org.apache.log4j.WriterAppender.createWriter(OutputStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 250 High

org.apache.log4j.bridge.LayoutAdapter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.log4j.bridge.LayoutAdapter.getFooter(): String.getBytes() I18N DM_DEFAULT_ENCODING 39 High
Found reliance on default encoding in org.apache.log4j.bridge.LayoutAdapter.getHeader(): String.getBytes() I18N DM_DEFAULT_ENCODING 44 High
Found reliance on default encoding in org.apache.log4j.bridge.LayoutAdapter.toByteArray(LogEvent): String.getBytes() I18N DM_DEFAULT_ENCODING 50 High

org.apache.log4j.spi.ThrowableInformation

Bug Category Details Line Priority
Class org.apache.log4j.spi.ThrowableInformation defines non-transient non-serializable instance field toStringList BAD_PRACTICE SE_BAD_FIELD Not available High