Apache logging services logo Apache log4j logo

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
84 9 0 0

org.apache.logging.log4j.message.StructuredDataId

Bug Category Details Line Priority
Useless condition: it's known that enterpriseNumber >= 0 at this point STYLE UC_USELESS_CONDITION 104 High

org.apache.logging.log4j.simple.SimpleLogger

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.logging.log4j.simple.SimpleLogger.logMessage(String, Level, Marker, Message, Throwable): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 166 High
Found reliance on default encoding in org.apache.logging.log4j.simple.SimpleLogger.logMessage(String, Level, Marker, Message, Throwable): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 165 High

org.apache.logging.log4j.simple.SimpleLoggerContext

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.logging.log4j.simple.SimpleLoggerContext(): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 87 High

org.apache.logging.log4j.spi.DefaultThreadContextStack

Bug Category Details Line Priority
org.apache.logging.log4j.spi.DefaultThreadContextStack.equals(Object) checks for operand being a MutableThreadContextStack BAD_PRACTICE EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS 134 High

org.apache.logging.log4j.status.StatusData

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.logging.log4j.status.StatusData.getFormattedStatus(): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 118 High
Found reliance on default encoding in org.apache.logging.log4j.status.StatusData.getFormattedStatus(): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 117 High

org.apache.logging.log4j.util.LoaderUtil$UrlResource

Bug Category Details Line Priority
Invocation of java.net.URL.equals(Object), which blocks to do domain name resolution, in org.apache.logging.log4j.util.LoaderUtil$UrlResource.equals(Object) PERFORMANCE DMI_BLOCKING_METHODS_ON_URL 247 High
Invocation of java.net.URL.hashCode(), which blocks to do domain name resolution, in org.apache.logging.log4j.util.LoaderUtil$UrlResource.hashCode() PERFORMANCE DMI_BLOCKING_METHODS_ON_URL 257 High