Apache logging services logo Apache log4j logo

Checkstyle Results

The following document contains the results of Checkstyle 6.2 with /Users/rgoers/projects/apache/logging/log4j/log4j2/log4j-2.4/log4j-api/../checkstyle.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
73 9 0 122

Files

File  I  W  E
org/apache/logging/log4j/EventLogger.java 0 0 1
org/apache/logging/log4j/Level.java 0 0 14
org/apache/logging/log4j/LogManager.java 1 0 12
org/apache/logging/log4j/Logger.java 0 0 6
org/apache/logging/log4j/Marker.java 0 0 4
org/apache/logging/log4j/MarkerManager.java 1 0 3
org/apache/logging/log4j/ThreadContext.java 0 0 1
org/apache/logging/log4j/message/FormattedMessage.java 0 0 1
org/apache/logging/log4j/message/LocalizedMessage.java 0 0 1
org/apache/logging/log4j/message/ObjectMessage.java 0 0 1
org/apache/logging/log4j/message/ParameterizedMessageFactory.java 0 0 1
org/apache/logging/log4j/message/StringFormatterMessageFactory.java 0 0 1
org/apache/logging/log4j/message/StructuredDataId.java 0 0 5
org/apache/logging/log4j/simple/SimpleLogger.java 0 0 4
org/apache/logging/log4j/simple/SimpleLoggerContext.java 0 0 1
org/apache/logging/log4j/simple/SimpleLoggerContextFactory.java 0 0 1
org/apache/logging/log4j/spi/AbstractLogger.java 0 0 15
org/apache/logging/log4j/spi/AbstractLoggerAdapter.java 0 0 1
org/apache/logging/log4j/spi/DefaultThreadContextMap.java 0 0 4
org/apache/logging/log4j/spi/DefaultThreadContextStack.java 0 0 2
org/apache/logging/log4j/spi/ExtendedLoggerWrapper.java 0 0 2
org/apache/logging/log4j/spi/Provider.java 0 0 3
org/apache/logging/log4j/spi/StandardLevel.java 0 0 2
org/apache/logging/log4j/status/StatusData.java 0 0 2
org/apache/logging/log4j/status/StatusLogger.java 0 0 4
org/apache/logging/log4j/util/Chars.java 0 0 8
org/apache/logging/log4j/util/EnglishEnums.java 0 0 1
org/apache/logging/log4j/util/LambdaUtil.java 0 0 1
org/apache/logging/log4j/util/LoaderUtil.java 0 0 9
org/apache/logging/log4j/util/PropertiesUtil.java 0 0 1
org/apache/logging/log4j/util/ProviderUtil.java 0 0 4
org/apache/logging/log4j/util/ReflectionUtil.java 7 0 4
org/apache/logging/log4j/util/StringBuilders.java 0 0 1
org/apache/logging/log4j/util/Strings.java 0 0 1

Details

org/apache/logging/log4j/EventLogger.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 32

org/apache/logging/log4j/Level.java

Severity Category Rule Message Line
 Error naming ConstantName Name 'levels' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$|^capabilities$|^log$'. 48
 Error coding DeclarationOrder Variable access definition in wrong order. 53
 Error coding DeclarationOrder Variable access definition in wrong order. 58
 Error coding DeclarationOrder Variable access definition in wrong order. 63
 Error coding DeclarationOrder Variable access definition in wrong order. 68
 Error coding DeclarationOrder Variable access definition in wrong order. 73
 Error coding DeclarationOrder Variable access definition in wrong order. 78
 Error coding DeclarationOrder Variable access definition in wrong order. 83
 Error coding DeclarationOrder Variable access definition in wrong order. 88
 Error coding DeclarationOrder Variable access definition in wrong order. 104
 Error sizes LineLength Line is longer than 120 characters (found 128). 144
 Error javadoc JavadocStyle First sentence should end with a period. 157
 Error coding SuperClone Method 'clone' should call 'super.clone'. 183
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 294

org/apache/logging/log4j/LogManager.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 54
 Error coding DeclarationOrder Variable access definition in wrong order. 61
 Error sizes LineLength Line is longer than 120 characters (found 168). 105
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 108
 Error sizes LineLength Line is longer than 120 characters (found 164). 121
 Info misc TodoComment Comment matches to-do format 'TODO:'. 161
 Error sizes LineLength Line is longer than 120 characters (found 121). 335
 Error sizes LineLength Line is longer than 120 characters (found 121). 367
 Error sizes LineLength Line is longer than 120 characters (found 121). 443
 Error sizes LineLength Line is longer than 120 characters (found 121). 457
 Error sizes LineLength Line is longer than 120 characters (found 121). 480
 Error sizes LineLength Line is longer than 120 characters (found 121). 493
 Error coding DeclarationOrder Constructor definition in wrong order. 547

org/apache/logging/log4j/Logger.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 357
 Error regexp RegexpSingleline Line has trailing spaces. 610
 Error regexp RegexpSingleline Line has trailing spaces. 867
 Error regexp RegexpSingleline Line has trailing spaces. 1220
 Error regexp RegexpSingleline Line has trailing spaces. 1510
 Error regexp RegexpSingleline Line has trailing spaces. 1740

org/apache/logging/log4j/Marker.java

Severity Category Rule Message Line
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 30
 Error regexp RegexpSingleline Line has trailing spaces. 41
 Error modifier RedundantModifier Redundant 'public' modifier. 46
 Error modifier RedundantModifier Redundant 'public' modifier. 67

org/apache/logging/log4j/MarkerManager.java

Severity Category Rule Message Line
 Info misc TodoComment Comment matches to-do format 'TODO:'. 141
 Error coding HiddenField 'parents' hides a field. 144
 Error sizes LineLength Line is longer than 120 characters (found 126). 312
 Error whitespace WhitespaceAfter 'cast' is not followed by whitespace. 312

org/apache/logging/log4j/ThreadContext.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Constructor definition in wrong order. 250

org/apache/logging/log4j/message/FormattedMessage.java

Severity Category Rule Message Line
 Error coding HiddenField 'throwable' hides a field. 111

org/apache/logging/log4j/message/LocalizedMessage.java

Severity Category Rule Message Line
 Error sizes LineLength Line is longer than 120 characters (found 128). 219

org/apache/logging/log4j/message/ObjectMessage.java

Severity Category Rule Message Line
 Error whitespace NoWhitespaceAfter '{' is followed by whitespace. 70

org/apache/logging/log4j/message/ParameterizedMessageFactory.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 35

org/apache/logging/log4j/message/StringFormatterMessageFactory.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 35

org/apache/logging/log4j/message/StructuredDataId.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 33
 Error coding DeclarationOrder Variable access definition in wrong order. 39
 Error coding DeclarationOrder Variable access definition in wrong order. 45
 Error coding DeclarationOrder Variable access definition in wrong order. 51
 Error coding HiddenField 'enterpriseNumber' hides a field. 130

org/apache/logging/log4j/simple/SimpleLogger.java

Severity Category Rule Message Line
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 43
 Error regexp RegexpSingleline Line has trailing spaces. 126
 Error coding HiddenField 'level' hides a field. 126
 Error sizes LineLength Line is longer than 120 characters (found 121). 157

org/apache/logging/log4j/simple/SimpleLoggerContext.java

Severity Category Rule Message Line
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 104

org/apache/logging/log4j/simple/SimpleLoggerContextFactory.java

Severity Category Rule Message Line
 Error coding HiddenField 'context' hides a field. 44

org/apache/logging/log4j/spi/AbstractLogger.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 43
 Error coding DeclarationOrder Variable access definition in wrong order. 48
 Error coding DeclarationOrder Variable access definition in wrong order. 53
 Error coding DeclarationOrder Variable access definition in wrong order. 58
 Error coding DeclarationOrder Variable access definition in wrong order. 63
 Error coding DeclarationOrder Variable access definition in wrong order. 68
 Error sizes LineLength Line is longer than 120 characters (found 122). 73
 Error coding DeclarationOrder Variable access definition in wrong order. 73
 Error sizes LineLength Line is longer than 120 characters (found 122). 101
 Error coding DeclarationOrder Instance variable definition in wrong order. 106
 Error coding DeclarationOrder Instance variable definition in wrong order. 108
 Error coding DeclarationOrder Constructor definition in wrong order. 113
 Error coding DeclarationOrder Constructor definition in wrong order. 123
 Error coding DeclarationOrder Constructor definition in wrong order. 134
 Error regexp RegexpSingleline Line has trailing spaces. 943

org/apache/logging/log4j/spi/AbstractLoggerAdapter.java

Severity Category Rule Message Line
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 46

org/apache/logging/log4j/spi/DefaultThreadContextMap.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 32
 Error coding MagicNumber '1231' is a magic number. 132
 Error coding MagicNumber '1237' is a magic number. 132
 Error regexp RegexpSingleline Line has trailing spaces. 155

org/apache/logging/log4j/spi/DefaultThreadContextStack.java

Severity Category Rule Message Line
 Error sizes LineLength Line is longer than 120 characters (found 136). 28
 Error naming ConstantName Name 'stack' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$|^capabilities$|^log$'. 35

org/apache/logging/log4j/spi/ExtendedLoggerWrapper.java

Severity Category Rule Message Line
 Error regexp RegexpSingleline Line has trailing spaces. 117
 Error sizes LineLength Line is longer than 120 characters (found 129). 126

org/apache/logging/log4j/spi/Provider.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 35
 Error coding DeclarationOrder Variable access definition in wrong order. 39
 Error coding DeclarationOrder Variable access definition in wrong order. 43

org/apache/logging/log4j/spi/StandardLevel.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Static variable definition in wrong order. 70
 Error naming ConstantName Name 'levelSet' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$|^capabilities$|^log$'. 70

org/apache/logging/log4j/status/StatusData.java

Severity Category Rule Message Line
 Error imports ImportOrder Wrong order for 'java.io.ByteArrayOutputStream' import. 21
 Error sizes LineLength Line is longer than 120 characters (found 131). 52

org/apache/logging/log4j/status/StatusLogger.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 51
 Error sizes LineLength Line is longer than 120 characters (found 122). 78
 Error blocks EmptyBlock Empty catch block. 162
 Error sizes LineLength Line is longer than 120 characters (found 125). 205

org/apache/logging/log4j/util/Chars.java

Severity Category Rule Message Line
 Error design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 22
 Error javadoc JavadocVariable Missing a Javadoc comment. 24
 Error javadoc JavadocVariable Missing a Javadoc comment. 25
 Error javadoc JavadocVariable Missing a Javadoc comment. 26
 Error javadoc JavadocVariable Missing a Javadoc comment. 27
 Error javadoc JavadocVariable Missing a Javadoc comment. 28
 Error javadoc JavadocVariable Missing a Javadoc comment. 29
 Error javadoc JavadocVariable Missing a Javadoc comment. 30

org/apache/logging/log4j/util/EnglishEnums.java

Severity Category Rule Message Line
 Error sizes LineLength Line is longer than 120 characters (found 138). 28

org/apache/logging/log4j/util/LambdaUtil.java

Severity Category Rule Message Line
 Error design FinalClass Class LambdaUtil should be declared as final. 26

org/apache/logging/log4j/util/LoaderUtil.java

Severity Category Rule Message Line
 Error whitespace WhitespaceAround '{' is not followed by whitespace. 36
 Error whitespace WhitespaceAround '}' is not preceded with whitespace. 36
 Error coding DeclarationOrder Static variable definition in wrong order. 43
 Error coding DeclarationOrder Static variable definition in wrong order. 45
 Error coding DeclarationOrder Static variable definition in wrong order. 49
 Error coding DeclarationOrder Static variable definition in wrong order. 51
 Error coding DeclarationOrder Static variable definition in wrong order. 53
 Error javadoc JavadocType Missing a Javadoc comment. 89
 Error coding MagicNumber '31' is a magic number. 257

org/apache/logging/log4j/util/PropertiesUtil.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Constructor definition in wrong order. 89

org/apache/logging/log4j/util/ProviderUtil.java

Severity Category Rule Message Line
 Error javadoc JavadocVariable Missing a Javadoc comment. 52
 Error coding DeclarationOrder Variable access definition in wrong order. 52
 Error coding DeclarationOrder Variable access definition in wrong order. 59
 Error naming StaticVariableName Name 'INSTANCE' must match pattern '^[a-z][a-zA-Z0-9]*$'. 62

org/apache/logging/log4j/util/ReflectionUtil.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Variable access definition in wrong order. 56
 Error naming ConstantName Name 'JDK_7u25_OFFSET' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$|^capabilities$|^log$'. 56
 Info misc TodoComment Comment matches to-do format 'TODO:'. 111
 Info misc TodoComment Comment matches to-do format 'TODO:'. 127
 Info misc TodoComment Comment matches to-do format 'TODO:'. 131
 Info misc TodoComment Comment matches to-do format 'TODO:'. 139
 Info misc TodoComment Comment matches to-do format 'TODO:'. 209
 Info misc TodoComment Comment matches to-do format 'TODO:'. 220
 Error javadoc JavadocType Missing a Javadoc comment. 291
 Info misc TodoComment Comment matches to-do format 'TODO:'. 309
 Error coding DeclarationOrder Constructor definition in wrong order. 329

org/apache/logging/log4j/util/StringBuilders.java

Severity Category Rule Message Line
 Error design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 24

org/apache/logging/log4j/util/Strings.java

Severity Category Rule Message Line
 Error coding DeclarationOrder Constructor definition in wrong order. 161