PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 3

org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 6970
EmptyCatchBlock Avoid empty catch blocks 7677
UselessQualifiedThis Useless qualified this usage in the same class. 346
EmptyIfStmt Avoid empty if statements 570574

org/apache/log4j/chainsaw/ChainsawAppender.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 135136

org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'DEFAULT_CAPACITY'. 54
UnusedLocalVariable Avoid unused local variables such as 'increment'. 836

org/apache/log4j/chainsaw/ExpressionRuleContext.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 119121

org/apache/log4j/chainsaw/FileLoadAction.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8385

org/apache/log4j/chainsaw/FileSaveAction.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 116118

org/apache/log4j/chainsaw/GeneratorBeanInfo.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 3839

org/apache/log4j/chainsaw/JSortTable.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 110112

org/apache/log4j/chainsaw/LogFilePatternLayoutBuilder.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 119121
EmptyCatchBlock Avoid empty catch blocks 129131
EmptyCatchBlock Avoid empty catch blocks 134136
EmptyCatchBlock Avoid empty catch blocks 188189
CollapsibleIfStatements These nested if statements could be combined 218255

org/apache/log4j/chainsaw/LogPanel.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 596
EmptyCatchBlock Avoid empty catch blocks 872873
CollapsibleIfStatements These nested if statements could be combined 878883
CollapsibleIfStatements These nested if statements could be combined 20182020
EmptyCatchBlock Avoid empty catch blocks 20642065
EmptyCatchBlock Avoid empty catch blocks 21402141
EmptyCatchBlock Avoid empty catch blocks 22262227
CollapsibleIfStatements These nested if statements could be combined 29642969
EmptyIfStmt Avoid empty if statements 31553159
EmptyIfStmt Avoid empty if statements 31683172
EmptyCatchBlock Avoid empty catch blocks 34383439
EmptyCatchBlock Avoid empty catch blocks 34543455
CollapsibleIfStatements These nested if statements could be combined 37393749
CollapsibleIfStatements These nested if statements could be combined 37573772

org/apache/log4j/chainsaw/LogUI.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'showSplash': private methods cannot be overridden 158162
UnnecessaryModifier Unnecessary modifier 'final' on method 'removeSplash': private methods cannot be overridden 164169
EmptyIfStmt Avoid empty if statements 221223
CollapsibleIfStatements These nested if statements could be combined 11181122
UselessQualifiedThis Useless qualified this usage in the same class. 1282
UselessQualifiedThis Useless qualified this usage in the same class. 1351
UselessQualifiedThis Useless qualified this usage in the same class. 1378
EmptyCatchBlock Avoid empty catch blocks 14271429
CollapsibleIfStatements These nested if statements could be combined 15371543
UselessQualifiedThis Useless qualified this usage in the same class. 1539

org/apache/log4j/chainsaw/LoggerNameTreePanel.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 12031204
EmptyIfStmt Avoid empty if statements 14491452

org/apache/log4j/chainsaw/SavableTabSetting.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'dragdrop'. 29

org/apache/log4j/chainsaw/TableColorizingRenderer.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 102104
EmptyCatchBlock Avoid empty catch blocks 657659

org/apache/log4j/chainsaw/color/RuleColorizer.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 260261

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'setFileList': private methods cannot be overridden 199203

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 6769

org/apache/log4j/chainsaw/plugins/PluginClassLoaderFactory.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'create': private methods cannot be overridden 6597

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 6263

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 311313

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

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'listener'. 368

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

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 97

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

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 543

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5051

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

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'hostAddress'. 466

org/apache/log4j/db/CustomSQLDBReceiver.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 198200
EmptyCatchBlock Avoid empty catch blocks 395396

org/apache/log4j/db/DBAppender.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 230

org/apache/log4j/db/DBHelper.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5255
EmptyCatchBlock Avoid empty catch blocks 6364

org/apache/log4j/db/DBReceiverJob.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 157159

org/apache/log4j/db/dialect/Util.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5860

org/apache/log4j/net/JMSReceiver.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 240242
EmptyCatchBlock Avoid empty catch blocks 261263

org/apache/log4j/net/JMSReceiverBeanInfo.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 4647

org/apache/log4j/net/MulticastReceiver.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 256258

org/apache/log4j/net/MulticastReceiverBeanInfo.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 4546

org/apache/log4j/net/UDPReceiver.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 265267

org/apache/log4j/net/XMLSocketNode.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 192194

org/apache/log4j/net/XMLSocketReceiver.java

Rule Violation Line
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 138
EmptyCatchBlock Avoid empty catch blocks 225227
EmptyCatchBlock Avoid empty catch blocks 239241

org/apache/log4j/varia/LogFilePatternReceiver.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 213215
CollapsibleIfStatements These nested if statements could be combined 536538
CollapsibleIfStatements These nested if statements could be combined 556558
CollapsibleIfStatements These nested if statements could be combined 574576
CollapsibleIfStatements These nested if statements could be combined 592594
CollapsibleIfStatements These nested if statements could be combined 950955

org/apache/log4j/varia/LogFilePatternReceiverBeanInfo.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 4849

org/apache/log4j/xml/LogFileXMLReceiver.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 148150

Priority 4

org/apache/log4j/chainsaw/ApplicationPreferenceModel.java

Rule Violation Line
UselessParentheses Useless parentheses. 194

org/apache/log4j/chainsaw/ChainsawAppenderHandler.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.log4j.LogManager' 20
UnusedImports Avoid unused imports such as 'org.apache.log4j.spi.LoggerRepositoryEx' 24
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 230
UselessParentheses Useless parentheses. 230
UselessParentheses Useless parentheses. 289
UselessParentheses Useless parentheses. 309

org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java

Rule Violation Line
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 559
UselessParentheses Useless parentheses. 559
UselessParentheses Useless parentheses. 559
UselessParentheses Useless parentheses. 562
UselessParentheses Useless parentheses. 562
UselessParentheses Useless parentheses. 562
UselessParentheses Useless parentheses. 565
UselessParentheses Useless parentheses. 565
UselessParentheses Useless parentheses. 565
UselessParentheses Useless parentheses. 568
UselessParentheses Useless parentheses. 568
UselessParentheses Useless parentheses. 568
UselessParentheses Useless parentheses. 629
UselessParentheses Useless parentheses. 629

org/apache/log4j/chainsaw/ColumnComparator.java

Rule Violation Line
UselessParentheses Useless parentheses. 54
UselessParentheses Useless parentheses. 122
UselessParentheses Useless parentheses. 170
UselessParentheses Useless parentheses. 171
UselessParentheses Useless parentheses. 171

org/apache/log4j/chainsaw/CyclicBufferList.java

Rule Violation Line
UselessParentheses Useless parentheses. 121
UselessParentheses Useless parentheses. 121
UselessParentheses Useless parentheses. 182

org/apache/log4j/chainsaw/ExpressionRuleContext.java

Rule Violation Line
UselessParentheses Useless parentheses. 88
UselessParentheses Useless parentheses. 104
UselessParentheses Useless parentheses. 129
UselessParentheses Useless parentheses. 130
UselessParentheses Useless parentheses. 148
UselessParentheses Useless parentheses. 157
UselessParentheses Useless parentheses. 168
UselessParentheses Useless parentheses. 171
UselessParentheses Useless parentheses. 181
UselessParentheses Useless parentheses. 181182
UselessParentheses Useless parentheses. 182
UselessParentheses Useless parentheses. 200
UselessParentheses Useless parentheses. 200
UselessParentheses Useless parentheses. 228
UselessParentheses Useless parentheses. 228

org/apache/log4j/chainsaw/FileSaveAction.java

Rule Violation Line
UselessParentheses Useless parentheses. 86
UselessParentheses Useless parentheses. 86
UselessParentheses Useless parentheses. 86
UselessParentheses Useless parentheses. 86

org/apache/log4j/chainsaw/JSortTable.java

Rule Violation Line
UselessParentheses Useless parentheses. 97
UselessParentheses Useless parentheses. 97
UselessParentheses Useless parentheses. 129

org/apache/log4j/chainsaw/LogPanel.java

Rule Violation Line
UselessParentheses Useless parentheses. 614
UselessParentheses Useless parentheses. 614
UselessParentheses Useless parentheses. 619
UselessParentheses Useless parentheses. 762763
UselessParentheses Useless parentheses. 762
UselessParentheses Useless parentheses. 763
UselessParentheses Useless parentheses. 763
UselessParentheses Useless parentheses. 766
UselessParentheses Useless parentheses. 766
UselessParentheses Useless parentheses. 767
UselessParentheses Useless parentheses. 780
UselessParentheses Useless parentheses. 791
UselessParentheses Useless parentheses. 791792
UselessParentheses Useless parentheses. 792
UselessParentheses Useless parentheses. 792
UselessParentheses Useless parentheses. 930
UselessParentheses Useless parentheses. 1228
UselessParentheses Useless parentheses. 12281229
UselessParentheses Useless parentheses. 12301231
UselessParentheses Useless parentheses. 1230
UselessParentheses Useless parentheses. 1499
UselessParentheses Useless parentheses. 1782
UselessParentheses Useless parentheses. 2251
UselessParentheses Useless parentheses. 2252
UselessParentheses Useless parentheses. 2439
UselessParentheses Useless parentheses. 2439
UselessParentheses Useless parentheses. 2789
UselessParentheses Useless parentheses. 3097
UselessParentheses Useless parentheses. 3276
UselessParentheses Useless parentheses. 3277
UselessParentheses Useless parentheses. 3309
UselessParentheses Useless parentheses. 3309
UselessParentheses Useless parentheses. 3419
UselessParentheses Useless parentheses. 3419
UselessParentheses Useless parentheses. 3444
UselessParentheses Useless parentheses. 3503
UselessParentheses Useless parentheses. 3654
UselessParentheses Useless parentheses. 3663
UselessParentheses Useless parentheses. 3673
UselessParentheses Useless parentheses. 3677
UselessParentheses Useless parentheses. 3730
UselessParentheses Useless parentheses. 3740
UselessParentheses Useless parentheses. 3758
UselessParentheses Useless parentheses. 3770
UselessParentheses Useless parentheses. 3778
UselessParentheses Useless parentheses. 3784
UselessParentheses Useless parentheses. 3862
UselessParentheses Useless parentheses. 3862
UselessParentheses Useless parentheses. 3869
UselessParentheses Useless parentheses. 3869
UselessParentheses Useless parentheses. 3882
UselessParentheses Useless parentheses. 3882
UselessParentheses Useless parentheses. 3889
UselessParentheses Useless parentheses. 3889
UselessParentheses Useless parentheses. 4063
UselessParentheses Useless parentheses. 4184

org/apache/log4j/chainsaw/LogPanelPreferenceModel.java

Rule Violation Line
UselessParentheses Useless parentheses. 242
UselessParentheses Useless parentheses. 345

org/apache/log4j/chainsaw/LogPanelPreferencePanel.java

Rule Violation Line
UselessParentheses Useless parentheses. 157

org/apache/log4j/chainsaw/LogUI.java

Rule Violation Line
UselessParentheses Useless parentheses. 267
UselessParentheses Useless parentheses. 343
UselessParentheses Useless parentheses. 782
UselessParentheses Useless parentheses. 783
UselessParentheses Useless parentheses. 787
UselessParentheses Useless parentheses. 788
UselessParentheses Useless parentheses. 835
UselessParentheses Useless parentheses. 836
UselessParentheses Useless parentheses. 1118
UselessParentheses Useless parentheses. 1118
UselessParentheses Useless parentheses. 1119
UselessParentheses Useless parentheses. 1119
UselessParentheses Useless parentheses. 11201121
UselessParentheses Useless parentheses. 1218
UselessParentheses Useless parentheses. 1220
UselessParentheses Useless parentheses. 1448
UselessParentheses Useless parentheses. 1449
UselessParentheses Useless parentheses. 1522
UselessParentheses Useless parentheses. 1526

org/apache/log4j/chainsaw/LoggerNameTreePanel.java

Rule Violation Line
UselessParentheses Useless parentheses. 142
UselessParentheses Useless parentheses. 143
UselessParentheses Useless parentheses. 144
UselessParentheses Useless parentheses. 292
UselessParentheses Useless parentheses. 293
UselessParentheses Useless parentheses. 515
UselessParentheses Useless parentheses. 515
UselessParentheses Useless parentheses. 601
UselessParentheses Useless parentheses. 601
UselessParentheses Useless parentheses. 964
UselessParentheses Useless parentheses. 964
UselessParentheses Useless parentheses. 1152
UselessParentheses Useless parentheses. 1152
UselessParentheses Useless parentheses. 1197
UselessParentheses Useless parentheses. 1197
UselessParentheses Useless parentheses. 1197
UselessParentheses Useless parentheses. 1200
UselessParentheses Useless parentheses. 1200
UselessParentheses Useless parentheses. 1200
UselessParentheses Useless parentheses. 1545
UselessParentheses Useless parentheses. 1546
UselessParentheses Useless parentheses. 1547
UselessParentheses Useless parentheses. 1552
UselessParentheses Useless parentheses. 1553
UselessParentheses Useless parentheses. 1629
UselessParentheses Useless parentheses. 1630
UselessParentheses Useless parentheses. 1644
UselessParentheses Useless parentheses. 1645
UselessParentheses Useless parentheses. 1646
UselessParentheses Useless parentheses. 1651
UselessParentheses Useless parentheses. 1654

org/apache/log4j/chainsaw/TableColorizingRenderer.java

Rule Violation Line
UselessParentheses Useless parentheses. 544

org/apache/log4j/chainsaw/ThrowableRenderPanel.java

Rule Violation Line
UselessParentheses Useless parentheses. 82

org/apache/log4j/chainsaw/color/ColorPanel.java

Rule Violation Line
UselessParentheses Useless parentheses. 260
UselessParentheses Useless parentheses. 322
UselessParentheses Useless parentheses. 554
UselessParentheses Useless parentheses. 554
UselessParentheses Useless parentheses. 557
UselessParentheses Useless parentheses. 557
UselessParentheses Useless parentheses. 560
UselessParentheses Useless parentheses. 604
UselessParentheses Useless parentheses. 604
UselessParentheses Useless parentheses. 667
UselessParentheses Useless parentheses. 667
UselessParentheses Useless parentheses. 721
UselessParentheses Useless parentheses. 876

org/apache/log4j/chainsaw/color/RuleColorizer.java

Rule Violation Line
UselessParentheses Useless parentheses. 170
UselessParentheses Useless parentheses. 170
UselessParentheses Useless parentheses. 186
UselessParentheses Useless parentheses. 186

org/apache/log4j/chainsaw/helper/SwingHelper.java

Rule Violation Line
UselessParentheses Useless parentheses. 43
UselessParentheses Useless parentheses. 44

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

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.swing.Icon' due to existing import 'javax.swing.*' 31
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.swing.Icon' due to existing import 'javax.swing.*' 71

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

Rule Violation Line
UselessParentheses Useless parentheses. 62
UselessParentheses Useless parentheses. 63
UselessParentheses Useless parentheses. 67
UselessParentheses Useless parentheses. 95
UselessParentheses Useless parentheses. 96

org/apache/log4j/chainsaw/messages/MessageCenter.java

Rule Violation Line
UselessParentheses Useless parentheses. 143
UselessParentheses Useless parentheses. 232

org/apache/log4j/chainsaw/osx/OSXIntegration.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.log4j.Logger' 19

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

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.awt.event.ActionListener' 29

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

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.log4j.chainsaw.Generator' 23
UnusedImports Avoid unused imports such as 'java.awt.event.WindowAdapter' 33
UnusedImports Avoid unused imports such as 'java.awt.event.WindowEvent' 34
UnusedImports Avoid unused imports such as 'javax.swing.event.CellEditorListener' 41
UnusedImports Avoid unused imports such as 'javax.swing.table.TableCellRenderer' 42
UselessParentheses Useless parentheses. 333
UselessParentheses Useless parentheses. 334

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

Rule Violation Line
UselessParentheses Useless parentheses. 87

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

Rule Violation Line
UselessParentheses Useless parentheses. 163
UselessParentheses Useless parentheses. 163
UselessParentheses Useless parentheses. 164
UselessParentheses Useless parentheses. 388
UselessParentheses Useless parentheses. 442
UselessParentheses Useless parentheses. 480
UselessParentheses Useless parentheses. 496
UselessParentheses Useless parentheses. 536

org/apache/log4j/db/CustomSQLDBReceiver.java

Rule Violation Line
UselessParentheses Useless parentheses. 174
UselessParentheses Useless parentheses. 228
UselessParentheses Useless parentheses. 343
UselessParentheses Useless parentheses. 344
UselessParentheses Useless parentheses. 376
UselessParentheses Useless parentheses. 377

org/apache/log4j/db/DBAppender.java

Rule Violation Line
UselessParentheses Useless parentheses. 164

org/apache/log4j/helpers/MessageFormatter.java

Rule Violation Line
UselessParentheses Useless parentheses. 67
UselessParentheses Useless parentheses. 74
UselessParentheses Useless parentheses. 74
UselessParentheses Useless parentheses. 116
UselessParentheses Useless parentheses. 129

org/apache/log4j/net/JMSReceiver.java

Rule Violation Line
UselessParentheses Useless parentheses. 167169

org/apache/log4j/net/XMLSocketNode.java

Rule Violation Line
UselessParentheses Useless parentheses. 106
UselessParentheses Useless parentheses. 106

org/apache/log4j/net/XMLSocketReceiver.java

Rule Violation Line
UselessParentheses Useless parentheses. 129
UselessParentheses Useless parentheses. 132
UselessParentheses Useless parentheses. 142

org/apache/log4j/plugins/PluginSkeleton.java

Rule Violation Line
UselessParentheses Useless parentheses. 129
UselessParentheses Useless parentheses. 130
UselessParentheses Useless parentheses. 131132

org/apache/log4j/plugins/Receiver.java

Rule Violation Line
UselessParentheses Useless parentheses. 9495
UselessParentheses Useless parentheses. 94

org/apache/log4j/spi/ErrorItem.java

Rule Violation Line
UselessParentheses Useless parentheses. 154

org/apache/log4j/varia/LogFilePatternReceiver.java

Rule Violation Line
UselessParentheses Useless parentheses. 441
UselessParentheses Useless parentheses. 593
UselessParentheses Useless parentheses. 773
UselessParentheses Useless parentheses. 921
UselessParentheses Useless parentheses. 984
UselessParentheses Useless parentheses. 984
UselessParentheses Useless parentheses. 984
UselessParentheses Useless parentheses. 985

org/apache/log4j/xml/LogFileXMLReceiver.java

Rule Violation Line
UselessParentheses Useless parentheses. 149

org/apache/log4j/xml/UtilLoggingXMLDecoder.java

Rule Violation Line
UselessParentheses Useless parentheses. 414
UselessParentheses Useless parentheses. 415
UselessParentheses Useless parentheses. 416
UselessParentheses Useless parentheses. 417
UselessParentheses Useless parentheses. 456
UselessParentheses Useless parentheses. 457

org/apache/log4j/xml/XMLDecoder.java

Rule Violation Line
UselessParentheses Useless parentheses. 430
UselessParentheses Useless parentheses. 431
UselessParentheses Useless parentheses. 432
UselessParentheses Useless parentheses. 433
UselessParentheses Useless parentheses. 481
UselessParentheses Useless parentheses. 482

Files

org/apache/log4j/chainsaw/ApplicationPreferenceModel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 194

org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 6970
EmptyCatchBlock Avoid empty catch blocks 3 7677
UselessQualifiedThis Useless qualified this usage in the same class. 3 346
EmptyIfStmt Avoid empty if statements 3 570574

org/apache/log4j/chainsaw/ChainsawAppender.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 135136

org/apache/log4j/chainsaw/ChainsawAppenderHandler.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.log4j.LogManager' 4 20
UnusedImports Avoid unused imports such as 'org.apache.log4j.spi.LoggerRepositoryEx' 4 24
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 230
UselessParentheses Useless parentheses. 4 230
UselessParentheses Useless parentheses. 4 289
UselessParentheses Useless parentheses. 4 309

org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'DEFAULT_CAPACITY'. 3 54
UselessParentheses Useless parentheses. 4 313
UselessParentheses Useless parentheses. 4 559
UselessParentheses Useless parentheses. 4 559
UselessParentheses Useless parentheses. 4 559
UselessParentheses Useless parentheses. 4 562
UselessParentheses Useless parentheses. 4 562
UselessParentheses Useless parentheses. 4 562
UselessParentheses Useless parentheses. 4 565
UselessParentheses Useless parentheses. 4 565
UselessParentheses Useless parentheses. 4 565
UselessParentheses Useless parentheses. 4 568
UselessParentheses Useless parentheses. 4 568
UselessParentheses Useless parentheses. 4 568
UselessParentheses Useless parentheses. 4 629
UselessParentheses Useless parentheses. 4 629
UnusedLocalVariable Avoid unused local variables such as 'increment'. 3 836

org/apache/log4j/chainsaw/ColumnComparator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 54
UselessParentheses Useless parentheses. 4 122
UselessParentheses Useless parentheses. 4 170
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 171

org/apache/log4j/chainsaw/CyclicBufferList.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 121
UselessParentheses Useless parentheses. 4 121
UselessParentheses Useless parentheses. 4 182

org/apache/log4j/chainsaw/ExpressionRuleContext.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 88
UselessParentheses Useless parentheses. 4 104
CollapsibleIfStatements These nested if statements could be combined 3 119121
UselessParentheses Useless parentheses. 4 129
UselessParentheses Useless parentheses. 4 130
UselessParentheses Useless parentheses. 4 148
UselessParentheses Useless parentheses. 4 157
UselessParentheses Useless parentheses. 4 168
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 181
UselessParentheses Useless parentheses. 4 181182
UselessParentheses Useless parentheses. 4 182
UselessParentheses Useless parentheses. 4 200
UselessParentheses Useless parentheses. 4 200
UselessParentheses Useless parentheses. 4 228
UselessParentheses Useless parentheses. 4 228

org/apache/log4j/chainsaw/FileLoadAction.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8385

org/apache/log4j/chainsaw/FileSaveAction.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 86
UselessParentheses Useless parentheses. 4 86
UselessParentheses Useless parentheses. 4 86
UselessParentheses Useless parentheses. 4 86
EmptyCatchBlock Avoid empty catch blocks 3 116118

org/apache/log4j/chainsaw/GeneratorBeanInfo.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 3839

org/apache/log4j/chainsaw/JSortTable.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 97
UselessParentheses Useless parentheses. 4 97
EmptyCatchBlock Avoid empty catch blocks 3 110112
UselessParentheses Useless parentheses. 4 129

org/apache/log4j/chainsaw/LogFilePatternLayoutBuilder.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 119121
EmptyCatchBlock Avoid empty catch blocks 3 129131
EmptyCatchBlock Avoid empty catch blocks 3 134136
EmptyCatchBlock Avoid empty catch blocks 3 188189
CollapsibleIfStatements These nested if statements could be combined 3 218255

org/apache/log4j/chainsaw/LogPanel.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 596
UselessParentheses Useless parentheses. 4 614
UselessParentheses Useless parentheses. 4 614
UselessParentheses Useless parentheses. 4 619
UselessParentheses Useless parentheses. 4 762763
UselessParentheses Useless parentheses. 4 762
UselessParentheses Useless parentheses. 4 763
UselessParentheses Useless parentheses. 4 763
UselessParentheses Useless parentheses. 4 766
UselessParentheses Useless parentheses. 4 766
UselessParentheses Useless parentheses. 4 767
UselessParentheses Useless parentheses. 4 780
UselessParentheses Useless parentheses. 4 791
UselessParentheses Useless parentheses. 4 791792
UselessParentheses Useless parentheses. 4 792
UselessParentheses Useless parentheses. 4 792
EmptyCatchBlock Avoid empty catch blocks 3 872873
CollapsibleIfStatements These nested if statements could be combined 3 878883
UselessParentheses Useless parentheses. 4 930
UselessParentheses Useless parentheses. 4 1228
UselessParentheses Useless parentheses. 4 12281229
UselessParentheses Useless parentheses. 4 12301231
UselessParentheses Useless parentheses. 4 1230
UselessParentheses Useless parentheses. 4 1499
UselessParentheses Useless parentheses. 4 1782
CollapsibleIfStatements These nested if statements could be combined 3 20182020
EmptyCatchBlock Avoid empty catch blocks 3 20642065
EmptyCatchBlock Avoid empty catch blocks 3 21402141
EmptyCatchBlock Avoid empty catch blocks 3 22262227
UselessParentheses Useless parentheses. 4 2251
UselessParentheses Useless parentheses. 4 2252
UselessParentheses Useless parentheses. 4 2439
UselessParentheses Useless parentheses. 4 2439
UselessParentheses Useless parentheses. 4 2789
CollapsibleIfStatements These nested if statements could be combined 3 29642969
UselessParentheses Useless parentheses. 4 3097
EmptyIfStmt Avoid empty if statements 3 31553159
EmptyIfStmt Avoid empty if statements 3 31683172
UselessParentheses Useless parentheses. 4 3276
UselessParentheses Useless parentheses. 4 3277
UselessParentheses Useless parentheses. 4 3309
UselessParentheses Useless parentheses. 4 3309
UselessParentheses Useless parentheses. 4 3419
UselessParentheses Useless parentheses. 4 3419
EmptyCatchBlock Avoid empty catch blocks 3 34383439
UselessParentheses Useless parentheses. 4 3444
EmptyCatchBlock Avoid empty catch blocks 3 34543455
UselessParentheses Useless parentheses. 4 3503
UselessParentheses Useless parentheses. 4 3654
UselessParentheses Useless parentheses. 4 3663
UselessParentheses Useless parentheses. 4 3673
UselessParentheses Useless parentheses. 4 3677
UselessParentheses Useless parentheses. 4 3730
CollapsibleIfStatements These nested if statements could be combined 3 37393749
UselessParentheses Useless parentheses. 4 3740
CollapsibleIfStatements These nested if statements could be combined 3 37573772
UselessParentheses Useless parentheses. 4 3758
UselessParentheses Useless parentheses. 4 3770
UselessParentheses Useless parentheses. 4 3778
UselessParentheses Useless parentheses. 4 3784
UselessParentheses Useless parentheses. 4 3862
UselessParentheses Useless parentheses. 4 3862
UselessParentheses Useless parentheses. 4 3869
UselessParentheses Useless parentheses. 4 3869
UselessParentheses Useless parentheses. 4 3882
UselessParentheses Useless parentheses. 4 3882
UselessParentheses Useless parentheses. 4 3889
UselessParentheses Useless parentheses. 4 3889
UselessParentheses Useless parentheses. 4 4063
UselessParentheses Useless parentheses. 4 4184

org/apache/log4j/chainsaw/LogPanelPreferenceModel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 242
UselessParentheses Useless parentheses. 4 345

org/apache/log4j/chainsaw/LogPanelPreferencePanel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 157

org/apache/log4j/chainsaw/LogUI.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'showSplash': private methods cannot be overridden 3 158162
UnnecessaryModifier Unnecessary modifier 'final' on method 'removeSplash': private methods cannot be overridden 3 164169
EmptyIfStmt Avoid empty if statements 3 221223
UselessParentheses Useless parentheses. 4 267
UselessParentheses Useless parentheses. 4 343
UselessParentheses Useless parentheses. 4 782
UselessParentheses Useless parentheses. 4 783
UselessParentheses Useless parentheses. 4 787
UselessParentheses Useless parentheses. 4 788
UselessParentheses Useless parentheses. 4 835
UselessParentheses Useless parentheses. 4 836
CollapsibleIfStatements These nested if statements could be combined 3 11181122
UselessParentheses Useless parentheses. 4 1118
UselessParentheses Useless parentheses. 4 1118
UselessParentheses Useless parentheses. 4 1119
UselessParentheses Useless parentheses. 4 1119
UselessParentheses Useless parentheses. 4 11201121
UselessParentheses Useless parentheses. 4 1218
UselessParentheses Useless parentheses. 4 1220
UselessQualifiedThis Useless qualified this usage in the same class. 3 1282
UselessQualifiedThis Useless qualified this usage in the same class. 3 1351
UselessQualifiedThis Useless qualified this usage in the same class. 3 1378
EmptyCatchBlock Avoid empty catch blocks 3 14271429
UselessParentheses Useless parentheses. 4 1448
UselessParentheses Useless parentheses. 4 1449
UselessParentheses Useless parentheses. 4 1522
UselessParentheses Useless parentheses. 4 1526
CollapsibleIfStatements These nested if statements could be combined 3 15371543
UselessQualifiedThis Useless qualified this usage in the same class. 3 1539

org/apache/log4j/chainsaw/LoggerNameTreePanel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 142
UselessParentheses Useless parentheses. 4 143
UselessParentheses Useless parentheses. 4 144
UselessParentheses Useless parentheses. 4 292
UselessParentheses Useless parentheses. 4 293
UselessParentheses Useless parentheses. 4 515
UselessParentheses Useless parentheses. 4 515
UselessParentheses Useless parentheses. 4 601
UselessParentheses Useless parentheses. 4 601
UselessParentheses Useless parentheses. 4 964
UselessParentheses Useless parentheses. 4 964
UselessParentheses Useless parentheses. 4 1152
UselessParentheses Useless parentheses. 4 1152
UselessParentheses Useless parentheses. 4 1197
UselessParentheses Useless parentheses. 4 1197
UselessParentheses Useless parentheses. 4 1197
UselessParentheses Useless parentheses. 4 1200
UselessParentheses Useless parentheses. 4 1200
UselessParentheses Useless parentheses. 4 1200
EmptyIfStmt Avoid empty if statements 3 12031204
EmptyIfStmt Avoid empty if statements 3 14491452
UselessParentheses Useless parentheses. 4 1545
UselessParentheses Useless parentheses. 4 1546
UselessParentheses Useless parentheses. 4 1547
UselessParentheses Useless parentheses. 4 1552
UselessParentheses Useless parentheses. 4 1553
UselessParentheses Useless parentheses. 4 1629
UselessParentheses Useless parentheses. 4 1630
UselessParentheses Useless parentheses. 4 1644
UselessParentheses Useless parentheses. 4 1645
UselessParentheses Useless parentheses. 4 1646
UselessParentheses Useless parentheses. 4 1651
UselessParentheses Useless parentheses. 4 1654

org/apache/log4j/chainsaw/SavableTabSetting.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'dragdrop'. 3 29

org/apache/log4j/chainsaw/TableColorizingRenderer.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 102104
UselessParentheses Useless parentheses. 4 544
EmptyCatchBlock Avoid empty catch blocks 3 657659

org/apache/log4j/chainsaw/ThrowableRenderPanel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 82

org/apache/log4j/chainsaw/color/ColorPanel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 260
UselessParentheses Useless parentheses. 4 322
UselessParentheses Useless parentheses. 4 554
UselessParentheses Useless parentheses. 4 554
UselessParentheses Useless parentheses. 4 557
UselessParentheses Useless parentheses. 4 557
UselessParentheses Useless parentheses. 4 560
UselessParentheses Useless parentheses. 4 604
UselessParentheses Useless parentheses. 4 604
UselessParentheses Useless parentheses. 4 667
UselessParentheses Useless parentheses. 4 667
UselessParentheses Useless parentheses. 4 721
UselessParentheses Useless parentheses. 4 876

org/apache/log4j/chainsaw/color/RuleColorizer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 170
UselessParentheses Useless parentheses. 4 170
UselessParentheses Useless parentheses. 4 186
UselessParentheses Useless parentheses. 4 186
EmptyCatchBlock Avoid empty catch blocks 3 260261

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'setFileList': private methods cannot be overridden 3 199203

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 6769

org/apache/log4j/chainsaw/helper/SwingHelper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 43
UselessParentheses Useless parentheses. 4 44

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.swing.Icon' due to existing import 'javax.swing.*' 4 31
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.swing.Icon' due to existing import 'javax.swing.*' 4 71

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 62
UselessParentheses Useless parentheses. 4 63
UselessParentheses Useless parentheses. 4 67
UselessParentheses Useless parentheses. 4 95
UselessParentheses Useless parentheses. 4 96

org/apache/log4j/chainsaw/messages/MessageCenter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 143
UselessParentheses Useless parentheses. 4 232

org/apache/log4j/chainsaw/osx/OSXIntegration.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.log4j.Logger' 4 19

org/apache/log4j/chainsaw/plugins/PluginClassLoaderFactory.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'create': private methods cannot be overridden 3 6597

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 6263

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

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.awt.event.ActionListener' 4 29

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

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.log4j.chainsaw.Generator' 4 23
UnusedImports Avoid unused imports such as 'java.awt.event.WindowAdapter' 4 33
UnusedImports Avoid unused imports such as 'java.awt.event.WindowEvent' 4 34
UnusedImports Avoid unused imports such as 'javax.swing.event.CellEditorListener' 4 41
UnusedImports Avoid unused imports such as 'javax.swing.table.TableCellRenderer' 4 42
EmptyCatchBlock Avoid empty catch blocks 3 311313
UselessParentheses Useless parentheses. 4 333
UselessParentheses Useless parentheses. 4 334

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 87

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 163
UselessParentheses Useless parentheses. 4 163
UselessParentheses Useless parentheses. 4 164
UnusedLocalVariable Avoid unused local variables such as 'listener'. 3 368
UselessParentheses Useless parentheses. 4 388
UselessParentheses Useless parentheses. 4 442
UselessParentheses Useless parentheses. 4 480
UselessParentheses Useless parentheses. 4 496
UselessParentheses Useless parentheses. 4 536

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

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 97

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

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 543

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5051

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

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'hostAddress'. 3 466

org/apache/log4j/db/CustomSQLDBReceiver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 174
EmptyCatchBlock Avoid empty catch blocks 3 198200
UselessParentheses Useless parentheses. 4 228
UselessParentheses Useless parentheses. 4 343
UselessParentheses Useless parentheses. 4 344
UselessParentheses Useless parentheses. 4 376
UselessParentheses Useless parentheses. 4 377
EmptyCatchBlock Avoid empty catch blocks 3 395396

org/apache/log4j/db/DBAppender.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 164
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 230

org/apache/log4j/db/DBHelper.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5255
EmptyCatchBlock Avoid empty catch blocks 3 6364

org/apache/log4j/db/DBReceiverJob.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 157159

org/apache/log4j/db/dialect/Util.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5860

org/apache/log4j/helpers/MessageFormatter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 67
UselessParentheses Useless parentheses. 4 74
UselessParentheses Useless parentheses. 4 74
UselessParentheses Useless parentheses. 4 116
UselessParentheses Useless parentheses. 4 129

org/apache/log4j/net/JMSReceiver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 167169
EmptyCatchBlock Avoid empty catch blocks 3 240242
EmptyCatchBlock Avoid empty catch blocks 3 261263

org/apache/log4j/net/JMSReceiverBeanInfo.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 4647

org/apache/log4j/net/MulticastReceiver.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 256258

org/apache/log4j/net/MulticastReceiverBeanInfo.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 4546

org/apache/log4j/net/UDPReceiver.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 265267

org/apache/log4j/net/XMLSocketNode.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 106
UselessParentheses Useless parentheses. 4 106
EmptyCatchBlock Avoid empty catch blocks 3 192194

org/apache/log4j/net/XMLSocketReceiver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 129
UselessParentheses Useless parentheses. 4 132
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 3 138
UselessParentheses Useless parentheses. 4 142
EmptyCatchBlock Avoid empty catch blocks 3 225227
EmptyCatchBlock Avoid empty catch blocks 3 239241

org/apache/log4j/plugins/PluginSkeleton.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 129
UselessParentheses Useless parentheses. 4 130
UselessParentheses Useless parentheses. 4 131132

org/apache/log4j/plugins/Receiver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 9495
UselessParentheses Useless parentheses. 4 94

org/apache/log4j/spi/ErrorItem.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 154

org/apache/log4j/varia/LogFilePatternReceiver.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 213215
UselessParentheses Useless parentheses. 4 441
CollapsibleIfStatements These nested if statements could be combined 3 536538
CollapsibleIfStatements These nested if statements could be combined 3 556558
CollapsibleIfStatements These nested if statements could be combined 3 574576
CollapsibleIfStatements These nested if statements could be combined 3 592594
UselessParentheses Useless parentheses. 4 593
UselessParentheses Useless parentheses. 4 773
UselessParentheses Useless parentheses. 4 921
CollapsibleIfStatements These nested if statements could be combined 3 950955
UselessParentheses Useless parentheses. 4 984
UselessParentheses Useless parentheses. 4 984
UselessParentheses Useless parentheses. 4 984
UselessParentheses Useless parentheses. 4 985

org/apache/log4j/varia/LogFilePatternReceiverBeanInfo.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 4849

org/apache/log4j/xml/LogFileXMLReceiver.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 148150
UselessParentheses Useless parentheses. 4 149

org/apache/log4j/xml/UtilLoggingXMLDecoder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 414
UselessParentheses Useless parentheses. 4 415
UselessParentheses Useless parentheses. 4 416
UselessParentheses Useless parentheses. 4 417
UselessParentheses Useless parentheses. 4 456
UselessParentheses Useless parentheses. 4 457

org/apache/log4j/xml/XMLDecoder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 430
UselessParentheses Useless parentheses. 4 431
UselessParentheses Useless parentheses. 4 432
UselessParentheses Useless parentheses. 4 433
UselessParentheses Useless parentheses. 4 481
UselessParentheses Useless parentheses. 4 482