Apache logging services logo Apache log4j logo

PMD Results

The following document contains the results of PMD 4.3.

Files

org/apache/logging/log4j/core/appender/AsynchAppender.java

ViolationLine
Avoid empty catch blocks214 - 216
Avoid empty catch blocks221 - 223

org/apache/logging/log4j/core/appender/FailoverAppender.java

ViolationLine
Avoid unused local variables such as 're'.103

org/apache/logging/log4j/core/appender/SyslogAppender.java

ViolationLine
Avoid unused private fields such as 'BSD'.38

org/apache/logging/log4j/core/appender/rewrite/RewriteAppender.java

ViolationLine
Overriding method merely calls super71 - 73

org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java

ViolationLine
Avoid unused private methods such as 'patternContains(String,char...)'.219

org/apache/logging/log4j/core/appender/rolling/helper/FileRenameAction.java

ViolationLine
These nested if statements could be combined80 - 83

org/apache/logging/log4j/core/config/AppenderControl.java

ViolationLine
These nested if statements could be combined77 - 79

org/apache/logging/log4j/core/config/ConfigurationFactory.java

ViolationLine
Avoid empty catch blocks244 - 246
Avoid empty catch blocks276 - 278

org/apache/logging/log4j/core/config/JSONConfigurationFactory.java

ViolationLine
Avoid unused private fields such as 'configFile'.39

org/apache/logging/log4j/core/config/LoggerConfig.java

ViolationLine
Overriding method merely calls super118 - 120

org/apache/logging/log4j/core/helpers/Charsets.java

ViolationLine
These nested if statements could be combined42 - 44

org/apache/logging/log4j/core/helpers/Loader.java

ViolationLine
Avoid using java.lang.ThreadGroup; it is not thread safe263

org/apache/logging/log4j/core/helpers/UUIDUtil.java

ViolationLine
Avoid empty catch blocks99 - 101

org/apache/logging/log4j/core/impl/Log4jLogEvent.java

ViolationLine
Avoid unused method parameters such as 'stream'.276 - 278

org/apache/logging/log4j/core/impl/ThrowableProxy.java

ViolationLine
Avoid empty catch blocks399 - 401
Avoid empty catch blocks426 - 428
Avoid empty catch blocks447 - 449
Avoid empty catch blocks529 - 531

org/apache/logging/log4j/core/layout/AbstractStringLayout.java

ViolationLine
Avoid empty catch blocks43 - 45

org/apache/logging/log4j/core/layout/HTMLLayout.java

ViolationLine
Avoid unused private fields such as 'contentType'.64
Avoid empty catch blocks206 - 208
Avoid using java.lang.ThreadGroup; it is not thread safe259

org/apache/logging/log4j/core/layout/XMLLayout.java

ViolationLine
Avoid empty catch blocks232 - 234

org/apache/logging/log4j/core/net/SocketServer.java

ViolationLine
Avoid empty catch blocks193 - 195
Avoid empty catch blocks223 - 225
Avoid empty catch blocks230 - 232
Avoid empty catch blocks232 - 234
Avoid empty catch blocks241 - 243

org/apache/logging/log4j/core/net/TCPSocketManager.java

ViolationLine
Avoid empty catch blocks171 - 173

org/apache/logging/log4j/core/pattern/AnsiEscape.java

ViolationLine
Avoid empty catch blocks325 - 327

org/apache/logging/log4j/core/pattern/ExtendedThrowablePatternConverter.java

ViolationLine
These nested if statements could be combined52 - 61

org/apache/logging/log4j/core/pattern/MarkerPatternConverter.java

ViolationLine
Avoid unused constructor parameters such as 'options'.34 - 36

org/apache/logging/log4j/core/pattern/RootThrowablePatternConverter.java

ViolationLine
These nested if statements could be combined53 - 62

org/apache/logging/log4j/core/pattern/ThrowablePatternConverter.java

ViolationLine
Avoid empty if statements70 - 71

org/apache/logging/log4j/core/selector/ClassLoaderContextSelector.java

ViolationLine
Avoid empty catch blocks95 - 97
Avoid empty catch blocks125 - 127