##### Get Chainsaw

- Download
- Changes
- License
- Important Distribution Notes

##### About Chainsaw

- Introduction
- Quick Tour
- Zeroconf
- Roadmap
- JavaDoc

##### Community

- Mailing Lists
- Issue Tracking

##### Development

- Repository
- Cross Reference
- Dependencies
- Duplication
- PMD

##### Apache

- Home
- Sponsorship
- Thanks
- Security
- Conferences

## 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 | 69–70
EmptyCatchBlock | Avoid empty catch blocks | 76–77
UselessQualifiedThis | Useless qualified this usage in the same class. | 346
EmptyIfStmt | Avoid empty if statements | 570–574

#### org/apache/log4j/chainsaw/ChainsawAppender.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 135–136

#### 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 | 119–121

#### org/apache/log4j/chainsaw/FileLoadAction.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 83–85

#### org/apache/log4j/chainsaw/FileSaveAction.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 116–118

#### org/apache/log4j/chainsaw/GeneratorBeanInfo.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 38–39

#### org/apache/log4j/chainsaw/JSortTable.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 110–112

#### org/apache/log4j/chainsaw/LogFilePatternLayoutBuilder.java

Rule | Violation | Line
--- | --- | ---
EmptyIfStmt | Avoid empty if statements | 119–121
EmptyCatchBlock | Avoid empty catch blocks | 129–131
EmptyCatchBlock | Avoid empty catch blocks | 134–136
EmptyCatchBlock | Avoid empty catch blocks | 188–189
CollapsibleIfStatements | These nested if statements could be combined | 218–255

#### org/apache/log4j/chainsaw/LogPanel.java

Rule | Violation | Line
--- | --- | ---
UselessQualifiedThis | Useless qualified this usage in the same class. | 596
EmptyCatchBlock | Avoid empty catch blocks | 872–873
CollapsibleIfStatements | These nested if statements could be combined | 878–883
CollapsibleIfStatements | These nested if statements could be combined | 2018–2020
EmptyCatchBlock | Avoid empty catch blocks | 2064–2065
EmptyCatchBlock | Avoid empty catch blocks | 2140–2141
EmptyCatchBlock | Avoid empty catch blocks | 2226–2227
CollapsibleIfStatements | These nested if statements could be combined | 2964–2969
EmptyIfStmt | Avoid empty if statements | 3155–3159
EmptyIfStmt | Avoid empty if statements | 3168–3172
EmptyCatchBlock | Avoid empty catch blocks | 3438–3439
EmptyCatchBlock | Avoid empty catch blocks | 3454–3455
CollapsibleIfStatements | These nested if statements could be combined | 3739–3749
CollapsibleIfStatements | These nested if statements could be combined | 3757–3772

#### org/apache/log4j/chainsaw/LogUI.java

Rule | Violation | Line
--- | --- | ---
UnnecessaryModifier | Unnecessary modifier 'final' on method 'showSplash': private methods cannot be overridden | 158–162
UnnecessaryModifier | Unnecessary modifier 'final' on method 'removeSplash': private methods cannot be overridden | 164–169
EmptyIfStmt | Avoid empty if statements | 221–223
CollapsibleIfStatements | These nested if statements could be combined | 1118–1122
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 | 1427–1429
CollapsibleIfStatements | These nested if statements could be combined | 1537–1543
UselessQualifiedThis | Useless qualified this usage in the same class. | 1539

#### org/apache/log4j/chainsaw/LoggerNameTreePanel.java

Rule | Violation | Line
--- | --- | ---
EmptyIfStmt | Avoid empty if statements | 1203–1204
EmptyIfStmt | Avoid empty if statements | 1449–1452

#### 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 | 102–104
EmptyCatchBlock | Avoid empty catch blocks | 657–659

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

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 260–261

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

Rule | Violation | Line
--- | --- | ---
UnnecessaryModifier | Unnecessary modifier 'final' on method 'setFileList': private methods cannot be overridden | 199–203

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

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 67–69

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

Rule | Violation | Line
--- | --- | ---
UnnecessaryModifier | Unnecessary modifier 'final' on method 'create': private methods cannot be overridden | 65–97

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

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 62–63

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

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 311–313

#### 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 | 50–51

#### 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 | 198–200
EmptyCatchBlock | Avoid empty catch blocks | 395–396

#### 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 | 52–55
EmptyCatchBlock | Avoid empty catch blocks | 63–64

#### org/apache/log4j/db/DBReceiverJob.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 157–159

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

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 58–60

#### org/apache/log4j/net/JMSReceiver.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 240–242
EmptyCatchBlock | Avoid empty catch blocks | 261–263

#### org/apache/log4j/net/JMSReceiverBeanInfo.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 46–47

#### org/apache/log4j/net/MulticastReceiver.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 256–258

#### org/apache/log4j/net/MulticastReceiverBeanInfo.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 45–46

#### org/apache/log4j/net/UDPReceiver.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 265–267

#### org/apache/log4j/net/XMLSocketNode.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 192–194

#### org/apache/log4j/net/XMLSocketReceiver.java

Rule | Violation | Line
--- | --- | ---
OverrideBothEqualsAndHashcode | Ensure you override both equals() and hashCode() | 138
EmptyCatchBlock | Avoid empty catch blocks | 225–227
EmptyCatchBlock | Avoid empty catch blocks | 239–241

#### org/apache/log4j/varia/LogFilePatternReceiver.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 213–215
CollapsibleIfStatements | These nested if statements could be combined | 536–538
CollapsibleIfStatements | These nested if statements could be combined | 556–558
CollapsibleIfStatements | These nested if statements could be combined | 574–576
CollapsibleIfStatements | These nested if statements could be combined | 592–594
CollapsibleIfStatements | These nested if statements could be combined | 950–955

#### org/apache/log4j/varia/LogFilePatternReceiverBeanInfo.java

Rule | Violation | Line
--- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 48–49

#### org/apache/log4j/xml/LogFileXMLReceiver.java

Rule | Violation | Line
--- | --- | ---
CollapsibleIfStatements | These nested if statements could be combined | 148–150

### 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. | 181–182
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. | 762
UselessParentheses | Useless parentheses. | 762–763
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. | 791–792
UselessParentheses | Useless parentheses. | 792
UselessParentheses | Useless parentheses. | 792
UselessParentheses | Useless parentheses. | 930
UselessParentheses | Useless parentheses. | 1228–1229
UselessParentheses | Useless parentheses. | 1228
UselessParentheses | Useless parentheses. | 1230
UselessParentheses | Useless parentheses. | 1230–1231
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. | 1120–1121
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. | 167–169

#### 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. | 131–132

#### org/apache/log4j/plugins/Receiver.java

Rule | Violation | Line
--- | --- | ---
UselessParentheses | Useless parentheses. | 94
UselessParentheses | Useless parentheses. | 94–95

#### 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 | 69–70
EmptyCatchBlock | Avoid empty catch blocks | 3 | 76–77
UselessQualifiedThis | Useless qualified this usage in the same class. | 3 | 346
EmptyIfStmt | Avoid empty if statements | 3 | 570–574

### org/apache/log4j/chainsaw/ChainsawAppender.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 135–136

### 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 | 119–121
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 | 181–182
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 | 83–85

### 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 | 116–118

### org/apache/log4j/chainsaw/GeneratorBeanInfo.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 38–39

### 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 | 110–112
UselessParentheses | Useless parentheses. | 4 | 129

### org/apache/log4j/chainsaw/LogFilePatternLayoutBuilder.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyIfStmt | Avoid empty if statements | 3 | 119–121
EmptyCatchBlock | Avoid empty catch blocks | 3 | 129–131
EmptyCatchBlock | Avoid empty catch blocks | 3 | 134–136
EmptyCatchBlock | Avoid empty catch blocks | 3 | 188–189
CollapsibleIfStatements | These nested if statements could be combined | 3 | 218–255

### 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 | 762
UselessParentheses | Useless parentheses. | 4 | 762–763
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 | 791–792
UselessParentheses | Useless parentheses. | 4 | 792
UselessParentheses | Useless parentheses. | 4 | 792
EmptyCatchBlock | Avoid empty catch blocks | 3 | 872–873
CollapsibleIfStatements | These nested if statements could be combined | 3 | 878–883
UselessParentheses | Useless parentheses. | 4 | 930
UselessParentheses | Useless parentheses. | 4 | 1228–1229
UselessParentheses | Useless parentheses. | 4 | 1228
UselessParentheses | Useless parentheses. | 4 | 1230
UselessParentheses | Useless parentheses. | 4 | 1230–1231
UselessParentheses | Useless parentheses. | 4 | 1499
UselessParentheses | Useless parentheses. | 4 | 1782
CollapsibleIfStatements | These nested if statements could be combined | 3 | 2018–2020
EmptyCatchBlock | Avoid empty catch blocks | 3 | 2064–2065
EmptyCatchBlock | Avoid empty catch blocks | 3 | 2140–2141
EmptyCatchBlock | Avoid empty catch blocks | 3 | 2226–2227
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 | 2964–2969
UselessParentheses | Useless parentheses. | 4 | 3097
EmptyIfStmt | Avoid empty if statements | 3 | 3155–3159
EmptyIfStmt | Avoid empty if statements | 3 | 3168–3172
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 | 3438–3439
UselessParentheses | Useless parentheses. | 4 | 3444
EmptyCatchBlock | Avoid empty catch blocks | 3 | 3454–3455
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 | 3739–3749
UselessParentheses | Useless parentheses. | 4 | 3740
CollapsibleIfStatements | These nested if statements could be combined | 3 | 3757–3772
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 | 158–162
UnnecessaryModifier | Unnecessary modifier 'final' on method 'removeSplash': private methods cannot be overridden | 3 | 164–169
EmptyIfStmt | Avoid empty if statements | 3 | 221–223
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
UselessParentheses | Useless parentheses. | 4 | 1118
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1118–1122
UselessParentheses | Useless parentheses. | 4 | 1118
UselessParentheses | Useless parentheses. | 4 | 1119
UselessParentheses | Useless parentheses. | 4 | 1119
UselessParentheses | Useless parentheses. | 4 | 1120–1121
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 | 1427–1429
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 | 1537–1543
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 | 1203–1204
EmptyIfStmt | Avoid empty if statements | 3 | 1449–1452
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 | 102–104
UselessParentheses | Useless parentheses. | 4 | 544
EmptyCatchBlock | Avoid empty catch blocks | 3 | 657–659

### 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 | 260–261

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

Rule | Violation | Priority | Line
--- | --- | --- | ---
UnnecessaryModifier | Unnecessary modifier 'final' on method 'setFileList': private methods cannot be overridden | 3 | 199–203

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

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 67–69

### 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 | 65–97

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

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 62–63

### 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 | 311–313
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 | 50–51

### 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 | 198–200
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 | 395–396

### 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 | 52–55
EmptyCatchBlock | Avoid empty catch blocks | 3 | 63–64

### org/apache/log4j/db/DBReceiverJob.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 157–159

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

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 58–60

### 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 | 167–169
EmptyCatchBlock | Avoid empty catch blocks | 3 | 240–242
EmptyCatchBlock | Avoid empty catch blocks | 3 | 261–263

### org/apache/log4j/net/JMSReceiverBeanInfo.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 46–47

### org/apache/log4j/net/MulticastReceiver.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 256–258

### org/apache/log4j/net/MulticastReceiverBeanInfo.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 45–46

### org/apache/log4j/net/UDPReceiver.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
EmptyCatchBlock | Avoid empty catch blocks | 3 | 265–267

### 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 | 192–194

### 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 | 225–227
EmptyCatchBlock | Avoid empty catch blocks | 3 | 239–241

### org/apache/log4j/plugins/PluginSkeleton.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
UselessParentheses | Useless parentheses. | 4 | 129
UselessParentheses | Useless parentheses. | 4 | 130
UselessParentheses | Useless parentheses. | 4 | 131–132

### org/apache/log4j/plugins/Receiver.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
UselessParentheses | Useless parentheses. | 4 | 94
UselessParentheses | Useless parentheses. | 4 | 94–95

### 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 | 213–215
UselessParentheses | Useless parentheses. | 4 | 441
CollapsibleIfStatements | These nested if statements could be combined | 3 | 536–538
CollapsibleIfStatements | These nested if statements could be combined | 3 | 556–558
CollapsibleIfStatements | These nested if statements could be combined | 3 | 574–576
CollapsibleIfStatements | These nested if statements could be combined | 3 | 592–594
UselessParentheses | Useless parentheses. | 4 | 593
UselessParentheses | Useless parentheses. | 4 | 773
UselessParentheses | Useless parentheses. | 4 | 921
CollapsibleIfStatements | These nested if statements could be combined | 3 | 950–955
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 | 48–49

### org/apache/log4j/xml/LogFileXMLReceiver.java

Rule | Violation | Priority | Line
--- | --- | --- | ---
CollapsibleIfStatements | These nested if statements could be combined | 3 | 148–150
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