PMD Results

The following document contains the results of PMD 3.9.

Files

org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java

ViolationLine
Avoid empty catch blocks88
Avoid empty catch blocks94
Avoid empty if statements616 - 620

org/apache/log4j/chainsaw/ChainsawAppender.java

ViolationLine
Avoid empty catch blocks131 - 132

org/apache/log4j/chainsaw/ChainsawAppenderHandler.java

ViolationLine
Avoid unused imports such as 'org.apache.log4j.MDC'29

org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java

ViolationLine
Avoid empty if statements311 - 312

org/apache/log4j/chainsaw/ExpressionRuleContext.java

ViolationLine
These nested if statements could be combined128 - 130

org/apache/log4j/chainsaw/FileLoadAction.java

ViolationLine
Avoid empty catch blocks113 - 115

org/apache/log4j/chainsaw/GeneratorBeanInfo.java

ViolationLine
Avoid empty catch blocks39 - 40

org/apache/log4j/chainsaw/JSortTable.java

ViolationLine
Avoid empty catch blocks103 - 104
Avoid empty catch blocks120 - 121

org/apache/log4j/chainsaw/LogPanel.java

ViolationLine
Avoid empty catch blocks827
Avoid empty catch blocks1471 - 1472
Avoid empty catch blocks1486 - 1487
Avoid empty catch blocks1495
Avoid empty catch blocks1559
Avoid empty catch blocks2295 - 2296
Avoid empty if statements2390 - 2394
Avoid empty if statements2403 - 2407
Avoid empty catch blocks2621
Avoid empty catch blocks2636

org/apache/log4j/chainsaw/LogPanelLoggerTreeModel.java

ViolationLine
Ensure you override both equals() and hashCode()181

org/apache/log4j/chainsaw/LogPanelPreferenceModel.java

ViolationLine
Avoid unused private fields such as 'logger'.48
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.300
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.300
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.305
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.305

org/apache/log4j/chainsaw/LogUI.java

ViolationLine
Avoid importing anything from the package 'java.lang'40
Avoid unused imports such as 'org.apache.log4j.helpers.Constants'110
These nested if statements could be combined1117 - 1125
These nested if statements could be combined1148 - 1152
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.1509
These nested if statements could be combined1548 - 1554
Avoid empty if statements1657 - 1659
Avoid empty catch blocks1718 - 1719

org/apache/log4j/chainsaw/LoggerNameTreePanel.java

ViolationLine
Avoid empty if statements971 - 972
Avoid empty if statements1175 - 1178

org/apache/log4j/chainsaw/NoReceiversWarningPanel.java

ViolationLine
Avoid empty catch blocks516 - 517

org/apache/log4j/chainsaw/dnd/FileDnDTarget.java

ViolationLine
Avoid unused private fields such as 'dropTarget'.42

org/apache/log4j/chainsaw/favourites/Favourite.java

ViolationLine
Unnecessary final modifier in final class32 - 35
Unnecessary final modifier in final class42 - 44

org/apache/log4j/chainsaw/favourites/FavouritesRegistry.java

ViolationLine
Avoid unused method parameters such as 'prototype'.73 - 76

org/apache/log4j/chainsaw/help/HelpManager.java

ViolationLine
Avoid empty catch blocks68 - 70
Unnecessary final modifier in final class79 - 82
Unnecessary final modifier in final class93 - 96

org/apache/log4j/chainsaw/icons/LineIconFactory.java

ViolationLine
Unnecessary final modifier in final class51 - 82
Unnecessary final modifier in final class83 - 110
Unnecessary final modifier in final class112 - 114
Unnecessary final modifier in final class116 - 118

org/apache/log4j/chainsaw/layout/EventDetailLayout.java

ViolationLine
Avoid unused local variables such as 'fqnCategory'.180

org/apache/log4j/chainsaw/prefs/MRUFileList.java

ViolationLine
Avoid unused private fields such as 'jdk14List'.20

org/apache/log4j/chainsaw/prefs/SettingsManager.java

ViolationLine
Avoid empty catch blocks72 - 73
Unnecessary final modifier in final class82 - 84

org/apache/log4j/chainsaw/receivers/PluginPropertyEditorPanel.java

ViolationLine
Avoid empty catch blocks156 - 158
Avoid empty catch blocks360 - 362

org/apache/log4j/chainsaw/vfs/VFSLogFilePatternReceiverBeanInfo.java

ViolationLine
Avoid empty catch blocks46 - 47

org/apache/log4j/chainsaw/zeroconf/ZeroConfDeviceModel.java

ViolationLine
Avoid unused imports such as 'javax.swing.ImageIcon'10
Avoid unused imports such as 'org.apache.log4j.chainsaw.icons.ChainsawIcons'13

org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.java

ViolationLine
Avoid unused private methods such as 'setIconIfNeeded()'.187

org/apache/log4j/chainsaw/zeroconf/ZeroConfPreferenceModel.java

ViolationLine
Avoid unused private fields such as 'propertySupport'.14