PMD Results
The following document contains the results of PMD 6.4.0.
Files
org/apache/logging/log4j/core/LoggerContext.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 399–401 |
org/apache/logging/log4j/core/appender/AsyncAppender.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 411–413 |
Avoid empty catch blocks | 3 | 456–458 |
org/apache/logging/log4j/core/appender/ConsoleAppender.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 251 |
org/apache/logging/log4j/core/appender/FailoverAppender.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 133 |
org/apache/logging/log4j/core/appender/FileManager.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 233 |
Avoid modifiers which are implied by the context | 3 | 266 |
org/apache/logging/log4j/core/appender/HttpURLConnectionManager.java
Violation | Priority | Line |
---|---|---|
Avoid empty while statements | 3 | 113–115 |
org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 346 |
org/apache/logging/log4j/core/appender/RollingRandomAccessFileAppender.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'bufferSize'. | 3 | 207 |
org/apache/logging/log4j/core/appender/ScriptAppenderSelector.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'properties'. | 3 | 137 |
org/apache/logging/log4j/core/appender/db/jdbc/ColumnConfig.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 74 |
Useless parentheses. | 4 | 74 |
Useless parentheses. | 4 | 74 |
org/apache/logging/log4j/core/appender/db/jdbc/JdbcDatabaseManager.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 491–493 |
Avoid empty catch blocks | 3 | 497–499 |
Avoid modifiers which are implied by the context | 3 | 662 |
Avoid empty catch blocks | 3 | 868–870 |
org/apache/logging/log4j/core/appender/mom/JmsManager.java
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 451–457 |
org/apache/logging/log4j/core/appender/mom/kafka/KafkaAppender.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 109–111 |
Avoid empty catch blocks | 3 | 169–171 |
org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
Violation | Priority | Line |
---|---|---|
Ternary operators that can be simplified with || or && | 3 | 126 |
Useless parentheses. | 4 | 457 |
org/apache/logging/log4j/core/appender/rolling/DirectWriteRolloverStrategy.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'usePrevTime'. | 3 | 239 |
Useless parentheses. | 4 | 317 |
org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'bufferSize'. | 3 | 94 |
Ternary operators that can be simplified with || or && | 3 | 656 |
org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManager.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'immediateFlush'. | 3 | 65 |
org/apache/logging/log4j/core/appender/rolling/action/CommonsCompressAction.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 106 |
Avoid modifiers which are implied by the context | 3 | 107–109 |
org/apache/logging/log4j/core/appender/rolling/action/Duration.java
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 122–138 |
Useless parentheses. | 4 | 168 |
org/apache/logging/log4j/core/appender/rolling/action/FileRenameAction.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 107 |
Useless parentheses. | 4 | 109 |
org/apache/logging/log4j/core/appender/rolling/action/GzCompressAction.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 135 |
Avoid modifiers which are implied by the context | 3 | 136 |
Avoid modifiers which are implied by the context | 3 | 137–138 |
Avoid modifiers which are implied by the context | 3 | 140 |
org/apache/logging/log4j/core/appender/rolling/action/ScriptCondition.java
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 113–116 |
org/apache/logging/log4j/core/appender/rolling/action/ZipCompressAction.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 98 |
Avoid modifiers which are implied by the context | 3 | 99 |
org/apache/logging/log4j/core/appender/routing/IdlePurgePolicy.java
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 78–81 |
org/apache/logging/log4j/core/appender/routing/Routes.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 69 |
Useless parentheses. | 4 | 69 |
org/apache/logging/log4j/core/async/AsyncLogger.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 344 |
org/apache/logging/log4j/core/async/AsyncLoggerConfig.java
Violation | Priority | Line |
---|---|---|
Overriding method merely calls super | 3 | 126–128 |
org/apache/logging/log4j/core/async/AsyncLoggerConfigDisruptor.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 199 |
org/apache/logging/log4j/core/async/RingBufferLogEvent.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 220 |
These nested if statements could be combined | 3 | 314–316 |
These nested if statements could be combined | 3 | 325–327 |
org/apache/logging/log4j/core/config/ConfigurationFactory.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'HTTPS'. | 3 | 144 |
Avoid unused private fields such as 'HTTP'. | 3 | 145 |
org/apache/logging/log4j/core/config/ConfigurationScheduler.java
Violation | Priority | Line |
---|---|---|
Overriding method merely calls super | 3 | 56–58 |
org/apache/logging/log4j/core/config/ConfigurationSource.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 85–87 |
Avoid empty catch blocks | 3 | 218–220 |
Avoid empty catch blocks | 3 | 232–234 |
org/apache/logging/log4j/core/config/LocationAwareReliabilityStrategy.java
Violation | Priority | Line |
---|---|---|
No need to import a type that lives in the same package | 3 | 21 |
org/apache/logging/log4j/core/config/LockingReliabilityStrategy.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'org.apache.logging.log4j.core.impl.LocationAware' | 4 | 27 |
org/apache/logging/log4j/core/config/LoggerConfig.java
Violation | Priority | Line |
---|---|---|
Overriding method merely calls super | 3 | 167–169 |
org/apache/logging/log4j/core/config/json/JsonConfiguration.java
Violation | Priority | Line |
---|---|---|
Avoid unused local variables such as 'configFile'. | 3 | 55 |
Avoid modifiers which are implied by the context | 3 | 58 |
org/apache/logging/log4j/core/config/plugins/convert/Base64Converter.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 43–45 |
Avoid empty catch blocks | 3 | 45–47 |
Avoid empty catch blocks | 3 | 47–49 |
Avoid empty catch blocks | 3 | 49–51 |
Avoid empty catch blocks | 3 | 59–61 |
org/apache/logging/log4j/core/config/plugins/processor/PluginCache.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 70 |
Avoid modifiers which are implied by the context | 3 | 100 |
org/apache/logging/log4j/core/config/plugins/processor/PluginProcessor.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 121 |
org/apache/logging/log4j/core/config/plugins/util/ResolverUtil.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 220 |
org/apache/logging/log4j/core/config/plugins/visitors/PluginElementVisitor.java
Violation | Priority | Line |
---|---|---|
Avoid empty if statements | 3 | 101–103 |
org/apache/logging/log4j/core/config/properties/PropertiesConfigurationFactory.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 47 |
org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
Violation | Priority | Line |
---|---|---|
Avoid unused local variables such as 'configFile'. | 3 | 77 |
Useless parentheses. | 4 | 310 |
org/apache/logging/log4j/core/filter/DenyAllFilter.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'org.apache.logging.log4j.core.config.plugins.PluginAttribute' | 4 | 26 |
Avoid unused imports such as 'org.apache.logging.log4j.core.config.plugins.PluginFactory' | 4 | 28 |
Avoid unused method parameters such as 'marker'. | 3 | 66 |
org/apache/logging/log4j/core/filter/LevelMatchFilter.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'org.apache.logging.log4j.core.config.plugins.PluginAttribute' | 4 | 26 |
Avoid unused imports such as 'org.apache.logging.log4j.core.config.plugins.PluginFactory' | 4 | 29 |
org/apache/logging/log4j/core/filter/MapFilter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 90 |
Useless parentheses. | 4 | 90 |
Useless parentheses. | 4 | 103 |
Useless parentheses. | 4 | 103 |
Useless parentheses. | 4 | 116 |
Useless parentheses. | 4 | 116 |
org/apache/logging/log4j/core/filter/ScriptFilter.java
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 146–149 |
org/apache/logging/log4j/core/filter/StringMatchFilter.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'org.apache.logging.log4j.message.ParameterizedMessage' | 4 | 29 |
org/apache/logging/log4j/core/filter/StructuredDataFilter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 84 |
Useless parentheses. | 4 | 84 |
org/apache/logging/log4j/core/filter/ThreadContextMapFilter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 109 |
Useless parentheses. | 4 | 109 |
org/apache/logging/log4j/core/filter/TimeFilter.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'HOUR_MS'. | 3 | 49 |
Avoid unused private fields such as 'MINUTE_MS'. | 3 | 54 |
Avoid unused private fields such as 'SECOND_MS'. | 3 | 59 |
org/apache/logging/log4j/core/impl/Log4jContextFactory.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 260 |
org/apache/logging/log4j/core/impl/Log4jLogEvent.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 1023–1025 |
org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 241 |
Avoid empty if statements | 3 | 257–259 |
org/apache/logging/log4j/core/impl/ThrowableProxyHelper.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 177–179 |
Avoid empty catch blocks | 3 | 213–215 |
org/apache/logging/log4j/core/jackson/ExtendedStackTraceElementMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'declaringClass'. | 3 | 41 |
Avoid unused constructor parameters such as 'methodName'. | 3 | 42 |
Avoid unused constructor parameters such as 'fileName'. | 3 | 43 |
Avoid unused constructor parameters such as 'lineNumber'. | 3 | 44 |
Avoid unused constructor parameters such as 'exact'. | 3 | 45 |
Avoid unused constructor parameters such as 'location'. | 3 | 46 |
Avoid unused constructor parameters such as 'version'. | 3 | 47 |
org/apache/logging/log4j/core/jackson/Initializers.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 56 |
Useless parentheses. | 4 | 78 |
org/apache/logging/log4j/core/jackson/InstantMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'epochSecond'. | 3 | 39 |
Avoid unused constructor parameters such as 'nanoOfSecond'. | 3 | 40 |
org/apache/logging/log4j/core/jackson/Log4jJsonModule.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'objectMessageAsJsonObject'. | 3 | 37 |
org/apache/logging/log4j/core/jackson/Log4jStackTraceElementDeserializer.java
Violation | Priority | Line |
---|---|---|
Avoid empty if statements | 3 | 72–74 |
org/apache/logging/log4j/core/jackson/MarkerMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'name'. | 3 | 61 |
org/apache/logging/log4j/core/jackson/StackTraceElementMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'declaringClass'. | 3 | 37 |
Avoid unused constructor parameters such as 'methodName'. | 3 | 38 |
Avoid unused constructor parameters such as 'fileName'. | 3 | 39 |
Avoid unused constructor parameters such as 'lineNumber'. | 3 | 40 |
org/apache/logging/log4j/core/jackson/ThrowableProxyMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'causeProxy'. | 3 | 34 |
Avoid unused private fields such as 'commonElementCount'. | 3 | 38 |
Avoid unused private fields such as 'extendedStackTrace'. | 3 | 43 |
Avoid unused private fields such as 'localizedMessage'. | 3 | 47 |
Avoid unused private fields such as 'message'. | 3 | 51 |
Avoid unused private fields such as 'name'. | 3 | 55 |
Avoid unused private fields such as 'throwable'. | 3 | 58 |
org/apache/logging/log4j/core/jackson/ThrowableProxyWithStacktraceAsStringMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'causeProxy'. | 3 | 33 |
Avoid unused private fields such as 'commonElementCount'. | 3 | 37 |
Avoid unused private fields such as 'extendedStackTrace'. | 3 | 40 |
Avoid unused private fields such as 'localizedMessage'. | 3 | 44 |
Avoid unused private fields such as 'message'. | 3 | 48 |
Avoid unused private fields such as 'name'. | 3 | 52 |
Avoid unused private fields such as 'throwable'. | 3 | 55 |
org/apache/logging/log4j/core/jackson/ThrowableProxyWithoutStacktraceMixIn.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'causeProxy'. | 3 | 33 |
Avoid unused private fields such as 'commonElementCount'. | 3 | 37 |
Avoid unused private fields such as 'extendedStackTrace'. | 3 | 40 |
Avoid unused private fields such as 'localizedMessage'. | 3 | 44 |
Avoid unused private fields such as 'message'. | 3 | 48 |
Avoid unused private fields such as 'name'. | 3 | 52 |
Avoid unused private fields such as 'throwable'. | 3 | 55 |
org/apache/logging/log4j/core/jmx/Server.java
Violation | Priority | Line |
---|---|---|
Avoid unused method parameters such as 'executor'. | 3 | 281 |
Avoid unused method parameters such as 'executor'. | 3 | 355 |
Avoid unused method parameters such as 'executor'. | 3 | 372 |
Useless parentheses. | 4 | 380 |
org/apache/logging/log4j/core/layout/ByteBufferDestination.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'org.apache.logging.log4j.core.appender.OutputStreamManager' | 4 | 21 |
org/apache/logging/log4j/core/layout/GelfLayout.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 425 |
Useless parentheses. | 4 | 499 |
org/apache/logging/log4j/core/layout/HtmlLayout.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 74–100 |
Avoid empty catch blocks | 3 | 236–238 |
org/apache/logging/log4j/core/layout/LevelPatternSelector.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'org.apache.logging.log4j.Marker' | 4 | 21 |
org/apache/logging/log4j/core/layout/LockingStringBuilderEncoder.java
Violation | Priority | Line |
---|---|---|
Avoid unused private methods such as 'getCharBuffer()'. | 3 | 48 |
Avoid unused method parameters such as 'destination'. | 3 | 68 |
org/apache/logging/log4j/core/layout/Rfc5424Layout.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 338 |
Useless parentheses. | 4 | 362 |
Useless parentheses. | 4 | 396 |
Useless parentheses. | 4 | 511 |
org/apache/logging/log4j/core/layout/ScriptPatternSelector.java
Violation | Priority | Line |
---|---|---|
These nested if statements could be combined | 3 | 84–87 |
org/apache/logging/log4j/core/layout/SerializedLayout.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 67 |
org/apache/logging/log4j/core/layout/StringBuilderEncoder.java
Violation | Priority | Line |
---|---|---|
Avoid unused method parameters such as 'destination'. | 3 | 94 |
org/apache/logging/log4j/core/layout/internal/ListChecker.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.util.List' | 4 | 19 |
Avoid modifiers which are implied by the context | 3 | 27 |
Avoid modifiers which are implied by the context | 3 | 34–44 |
org/apache/logging/log4j/core/lookup/JndiLookup.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 55 |
org/apache/logging/log4j/core/lookup/StrSubstitutor.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'valueDelimiterString'. | 3 | 187 |
org/apache/logging/log4j/core/net/MulticastDnsAdvertiser.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 93–95 |
Avoid empty catch blocks | 3 | 198–200 |
org/apache/logging/log4j/core/net/SmtpManager.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 233 |
org/apache/logging/log4j/core/net/ssl/AbstractKeyStoreConfiguration.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 71 |
org/apache/logging/log4j/core/net/ssl/KeyStoreConfiguration.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 161 |
org/apache/logging/log4j/core/net/ssl/TrustStoreConfiguration.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 149 |
org/apache/logging/log4j/core/pattern/AnsiEscape.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 328–330 |
org/apache/logging/log4j/core/pattern/CachedDateFormat.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 211 |
Useless parentheses. | 4 | 268 |
Useless parentheses. | 4 | 268 |
Useless parentheses. | 4 | 268 |
Useless parentheses. | 4 | 381 |
Useless parentheses. | 4 | 381 |
org/apache/logging/log4j/core/pattern/HighlightConverter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 199 |
org/apache/logging/log4j/core/pattern/HtmlTextRenderer.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'formats'. | 3 | 24 |
org/apache/logging/log4j/core/pattern/JAnsiTextRenderer.java
Violation | Priority | Line |
---|---|---|
Too many static imports may lead to messy code | 3 | 17–332 |
org/apache/logging/log4j/core/pattern/MarkerPatternConverter.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'options'. | 3 | 37 |
org/apache/logging/log4j/core/pattern/MarkerSimpleNamePatternConverter.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'options'. | 3 | 36 |
org/apache/logging/log4j/core/pattern/NameAbbreviator.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 295 |
org/apache/logging/log4j/core/pattern/NanoTimePatternConverter.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'options'. | 3 | 37 |
org/apache/logging/log4j/core/pattern/PatternParser.java
Violation | Priority | Line |
---|---|---|
Avoid unused constructor parameters such as 'expectedClass'. | 3 | 128 |
These nested if statements could be combined | 3 | 186–188 |
org/apache/logging/log4j/core/pattern/StyleConverter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 99 |
org/apache/logging/log4j/core/pattern/UuidPatternConverter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 53 |
org/apache/logging/log4j/core/pattern/VariablesNotEmptyReplacementConverter.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 86 |
org/apache/logging/log4j/core/script/ScriptFile.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 96–97 |
org/apache/logging/log4j/core/selector/ClassLoaderContextSelector.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.lang.ref.Reference' | 4 | 19 |
org/apache/logging/log4j/core/selector/JndiContextSelector.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 139 |
Avoid modifiers which are implied by the context | 3 | 151 |
org/apache/logging/log4j/core/tools/Generate.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 53–166 |
org/apache/logging/log4j/core/tools/picocli/CommandLine.java
Violation | Priority | Line |
---|---|---|
Avoid modifiers which are implied by the context | 3 | 364–375 |
Avoid modifiers which are implied by the context | 3 | 387–398 |
Useless parentheses. | 4 | 1040 |
Avoid using a branching statement as the last in a loop. | 2 | 1064 |
Useless parentheses. | 4 | 2092 |
These nested if statements could be combined | 3 | 2171 |
Avoid unused method parameters such as 'valueAttachedToOption'. | 3 | 2215 |
Avoid unused local variables such as 'length'. | 3 | 2220 |
Ternary operators that can be simplified with || or && | 3 | 2258 |
Avoid unused method parameters such as 'annotation'. | 3 | 2286 |
These nested if statements could be combined | 3 | 2320–2322 |
Avoid unused method parameters such as 'arity'. | 3 | 2329 |
Avoid unused local variables such as 'desc'. | 3 | 2359 |
Avoid unused method parameters such as 'cls'. | 3 | 2369 |
These nested if statements could be combined | 3 | 2435–2437 |
Avoid unused method parameters such as 'arity'. | 3 | 2445 |
Avoid unused method parameters such as 'originalSize'. | 3 | 2450 |
These nested if statements could be combined | 3 | 2495–2497 |
Useless parentheses. | 4 | 2499 |
These nested if statements could be combined | 3 | 2543 |
Useless parentheses. | 4 | 2611 |
Ternary operators that can be simplified with || or && | 3 | 2971 |
Ternary operators that can be simplified with || or && | 3 | 2972 |
Ternary operators that can be simplified with || or && | 3 | 2974 |
Unnecessary use of fully qualified name 'Help.Column.Overflow.SPAN' due to existing static import 'org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.Column.Overflow.SPAN' | 4 | 3330 |
Unnecessary use of fully qualified name 'Help.Column.Overflow.WRAP' due to existing static import 'org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.Column.Overflow.WRAP' | 4 | 3331 |
Useless parentheses. | 4 | 3336 |
Useless parentheses. | 4 | 3350 |
Useless parentheses. | 4 | 3705 |
Avoid unused local variables such as 'o1'. | 3 | 3873 |
Avoid unused local variables such as 'o2'. | 3 | 3874 |
Useless parentheses. | 4 | 4280 |
Useless parentheses. | 4 | 4520 |
Useless parentheses. | 4 | 4775 |
org/apache/logging/log4j/core/util/AbstractWatcher.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.io.File' | 4 | 19 |
org/apache/logging/log4j/core/util/BasicAuthorizationProvider.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.util.function.Supplier' | 4 | 20 |
org/apache/logging/log4j/core/util/Booleans.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 37 |
org/apache/logging/log4j/core/util/CronExpression.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 299 |
Useless parentheses. | 4 | 299 |
Useless parentheses. | 4 | 299 |
These nested if statements could be combined | 3 | 488–491 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 510 |
Useless parentheses. | 4 | 574 |
Useless parentheses. | 4 | 580 |
Useless parentheses. | 4 | 628 |
Useless parentheses. | 4 | 630 |
Useless parentheses. | 4 | 632 |
Useless parentheses. | 4 | 634 |
Useless parentheses. | 4 | 773 |
Useless parentheses. | 4 | 943 |
Useless parentheses. | 4 | 949 |
Useless parentheses. | 4 | 954 |
Useless parentheses. | 4 | 955 |
Useless parentheses. | 4 | 960 |
These nested if statements could be combined | 3 | 965–969 |
Useless parentheses. | 4 | 965 |
Useless parentheses. | 4 | 966 |
Useless parentheses. | 4 | 1118 |
Unnecessary use of fully qualified name 'java.util.Calendar' due to existing import 'java.util.Calendar' | 4 | 1266 |
Unnecessary use of fully qualified name 'java.util.Calendar.getInstance' due to existing import 'java.util.Calendar' | 4 | 1266 |
Unnecessary use of fully qualified name 'java.util.Calendar' due to existing import 'java.util.Calendar' | 4 | 1302 |
Unnecessary use of fully qualified name 'java.util.Calendar.getInstance' due to existing import 'java.util.Calendar' | 4 | 1302 |
Unnecessary use of fully qualified name 'java.util.Calendar.HOUR_OF_DAY' due to existing import 'java.util.Calendar' | 4 | 1566 |
Unnecessary use of fully qualified name 'java.util.Calendar.HOUR_OF_DAY' due to existing import 'java.util.Calendar' | 4 | 1567 |
Unnecessary use of fully qualified name 'java.util.Calendar.HOUR_OF_DAY' due to existing import 'java.util.Calendar' | 4 | 1568 |
Useless parentheses. | 4 | 1647 |
Useless parentheses. | 4 | 1647 |
Useless parentheses. | 4 | 1656 |
org/apache/logging/log4j/core/util/FileUtils.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 64–65 |
Useless parentheses. | 4 | 65 |
org/apache/logging/log4j/core/util/IOUtils.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.io.InputStream' | 4 | 20 |
Avoid unused imports such as 'java.io.OutputStream' | 4 | 21 |
org/apache/logging/log4j/core/util/JsonUtils.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 97 |
org/apache/logging/log4j/core/util/Loader.java
Violation | Priority | Line |
---|---|---|
Avoid unused local variables such as 'className'. | 3 | 334 |
org/apache/logging/log4j/core/util/Log4jThreadFactory.java
Violation | Priority | Line |
---|---|---|
Avoid using java.lang.ThreadGroup; it is not thread safe | 3 | 81 |
org/apache/logging/log4j/core/util/Source.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.io.ByteArrayInputStream' | 4 | 20 |
Avoid unused imports such as 'java.io.ByteArrayOutputStream' | 4 | 21 |
Avoid unused imports such as 'java.io.FileInputStream' | 4 | 23 |
Avoid unused imports such as 'java.io.FileNotFoundException' | 4 | 24 |
Avoid unused imports such as 'java.io.IOException' | 4 | 25 |
Avoid unused imports such as 'java.io.InputStream' | 4 | 26 |
Avoid unused imports such as 'java.net.MalformedURLException' | 4 | 27 |
Avoid unused imports such as 'java.net.URISyntaxException' | 4 | 29 |
Avoid unused imports such as 'java.net.URL' | 4 | 30 |
Avoid unused imports such as 'org.apache.logging.log4j.Level' | 4 | 33 |
Avoid unused imports such as 'org.apache.logging.log4j.core.config.ConfigurationFactory' | 4 | 34 |
Avoid unused imports such as 'org.apache.logging.log4j.util.LoaderUtil' | 4 | 36 |
Avoid unused constructor parameters such as 'lastModified'. | 3 | 78 |
org/apache/logging/log4j/core/util/StringEncoder.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 81 |
Useless parentheses. | 4 | 81 |
Useless parentheses. | 4 | 97 |
Useless parentheses. | 4 | 97 |
Useless parentheses. | 4 | 98 |
Useless parentheses. | 4 | 105 |
org/apache/logging/log4j/core/util/Throwables.java
Violation | Priority | Line |
---|---|---|
Avoid empty catch blocks | 3 | 62–64 |
org/apache/logging/log4j/core/util/Transform.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 50–53 |
Useless parentheses. | 4 | 127–134 |
org/apache/logging/log4j/core/util/TypeUtil.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 219 |
Useless parentheses. | 4 | 219 |
Useless parentheses. | 4 | 219 |
org/apache/logging/log4j/core/util/UuidUtil.java
Violation | Priority | Line |
---|---|---|
Avoid unused imports such as 'java.net.InetAddress' | 4 | 19 |
Avoid unused imports such as 'java.net.NetworkInterface' | 4 | 20 |
Avoid unused imports such as 'java.net.SocketException' | 4 | 21 |
Avoid unused imports such as 'java.net.UnknownHostException' | 4 | 22 |
Avoid unused imports such as 'java.util.Enumeration' | 4 | 25 |
Avoid unused private fields such as 'LOGGER'. | 3 | 44 |
Useless parentheses. | 4 | 147 |
Useless parentheses. | 4 | 147–148 |
org/apache/logging/log4j/core/util/WatchManager.java
Violation | Priority | Line |
---|---|---|
Avoid unused private fields such as 'NODE_SIZE'. | 3 | 354 |
Avoid unused private fields such as 'VARIANT'. | 3 | 362 |
Avoid unused private fields such as 'SEQUENCE_MASK'. | 3 | 363 |
Useless parentheses. | 4 | 367 |
Useless parentheses. | 4 | 367–368 |
org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
Violation | Priority | Line |
---|---|---|
Useless parentheses. | 4 | 357 |
Useless parentheses. | 4 | 360 |
Useless parentheses. | 4 | 370 |
Useless parentheses. | 4 | 373 |
Useless parentheses. | 4 | 635 |
Useless parentheses. | 4 | 638 |
Useless parentheses. | 4 | 644 |
Useless parentheses. | 4 | 647 |
Useless parentheses. | 4 | 653 |
Useless parentheses. | 4 | 654 |
Useless parentheses. | 4 | 660 |
Useless parentheses. | 4 | 664 |
Useless parentheses. | 4 | 667 |
Useless parentheses. | 4 | 693 |