PMD Results

The following document contains the results of PMD 4.3.

Files

org/apache/logging/log4j/core/Filter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'20
Avoid unused imports such as 'org.apache.logging.log4j.core.net.Protocol'24

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

ViolationLine
Avoid empty catch blocks209 - 211
Avoid empty catch blocks216 - 218

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

ViolationLine
Avoid unused imports such as 'java.util.Locale'19
Avoid unused imports such as 'org.apache.logging.log4j.core.net.Facility'30

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

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

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

ViolationLine
Overriding method merely calls super70 - 72

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

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

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

ViolationLine
These nested if statements could be combined86 - 89

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

ViolationLine
These nested if statements could be combined73 - 75

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

ViolationLine
Avoid unused imports such as 'java.util.Locale'19

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

ViolationLine
Avoid empty catch blocks242 - 244
Avoid empty catch blocks274 - 276

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

ViolationLine
Avoid unused imports such as 'java.util.Locale'45

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
Avoid unused imports such as 'java.util.Locale'44
Overriding method merely calls super119 - 121

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

ViolationLine
Avoid unused imports such as 'java.util.Locale'59

org/apache/logging/log4j/core/filter/BurstFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'29

org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'32

org/apache/logging/log4j/core/filter/MapFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'34

org/apache/logging/log4j/core/filter/MarkerFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'19

org/apache/logging/log4j/core/filter/RegexFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'28

org/apache/logging/log4j/core/filter/StructuredDataFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'33

org/apache/logging/log4j/core/filter/ThreadContextMapFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'35
Avoid unused private fields such as 'value'.45

org/apache/logging/log4j/core/filter/ThresholdFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'19

org/apache/logging/log4j/core/filter/TimeFilter.java

ViolationLine
Avoid unused imports such as 'java.util.Locale'27

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

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

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

ViolationLine
Avoid empty catch blocks97 - 99

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

ViolationLine
Avoid unused method parameters such as 'stream'.273 - 275

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

ViolationLine
Avoid empty catch blocks412 - 414
Avoid empty catch blocks439 - 441
Avoid empty catch blocks460 - 462
Avoid empty catch blocks542 - 544

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 blocks197 - 199
Avoid using java.lang.ThreadGroup; it is not thread safe250

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

ViolationLine
Avoid unused private fields such as 'handlesExceptions'.86

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

ViolationLine
Avoid unused imports such as 'org.apache.logging.log4j.util.EnglishEnums'31
Avoid unused imports such as 'java.util.Locale'43

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

ViolationLine
Avoid unused imports such as 'org.apache.logging.log4j.util.EnglishEnums'25

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

ViolationLine
Avoid empty catch blocks222 - 224

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 blocks145 - 147

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

ViolationLine
Avoid empty catch blocks187 - 189

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

ViolationLine
These nested if statements could be combined52 - 61

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

ViolationLine
Avoid unused imports such as 'java.util.Locale'24

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 statements66 - 67

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

ViolationLine
Avoid empty catch blocks95 - 97
Avoid empty catch blocks123 - 125