PMD Results

The following document contains the results of PMD 5.6.1.

Files

org/dbunit/IOperationListener.java

Violation Line
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 58
Avoid modifiers which are implied by the context 6881

org/dbunit/ant/AbstractStep.java

Violation Line
Useless parentheses. 143

org/dbunit/ant/DbUnitTaskStep.java

Violation Line
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 40

org/dbunit/assertion/DifferenceListener.java

Violation Line
Avoid modifiers which are implied by the context 43

org/dbunit/assertion/FailureFactory.java

Violation Line
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 50

org/dbunit/assertion/FailureHandler.java

Violation Line
Avoid modifiers which are implied by the context 4647

org/dbunit/database/DatabaseConfig.java

Violation Line
These nested if statements could be combined 265268

org/dbunit/database/DatabaseDataSet.java

Violation Line
These nested if statements could be combined 401404

org/dbunit/database/DatabaseTableMetaData.java

Violation Line
Useless parentheses. 369

org/dbunit/database/IDatabaseConnection.java

Violation Line
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 60
Avoid modifiers which are implied by the context 7071
Avoid modifiers which are implied by the context 8384
Avoid modifiers which are implied by the context 9697
Avoid modifiers which are implied by the context 105106
Avoid modifiers which are implied by the context 114
Avoid modifiers which are implied by the context 123
Avoid modifiers which are implied by the context 128
Avoid modifiers which are implied by the context 133

org/dbunit/database/IMetadataHandler.java

Violation Line
Avoid modifiers which are implied by the context 6364
Avoid modifiers which are implied by the context 126127

org/dbunit/database/IResultSetTable.java

Violation Line
Avoid modifiers which are implied by the context 34

org/dbunit/database/IResultSetTableFactory.java

Violation Line
Avoid modifiers which are implied by the context 3738
Avoid modifiers which are implied by the context 4041
Avoid modifiers which are implied by the context 5152

org/dbunit/database/PrimaryKeyFilter.java

Violation Line
Useless parentheses. 485

org/dbunit/dataset/DefaultTable.java

Violation Line
Avoid empty catch blocks 144148

org/dbunit/dataset/IDataSet.java

Violation Line
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 4950
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 69
Avoid modifiers which are implied by the context 74
Avoid modifiers which are implied by the context 79
Avoid modifiers which are implied by the context 86

org/dbunit/dataset/IRowValueProvider.java

Violation Line
Avoid modifiers which are implied by the context 40

org/dbunit/dataset/ITable.java

Violation Line
Avoid modifiers which are implied by the context 34
Avoid modifiers which are implied by the context 39
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 57

org/dbunit/dataset/ITableIterator.java

Violation Line
Avoid modifiers which are implied by the context 39
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 49

org/dbunit/dataset/ITableMetaData.java

Violation Line
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 67

org/dbunit/dataset/common/handlers/AbstractPipelineComponent.java

Violation Line
These nested if statements could be combined 9192

org/dbunit/dataset/common/handlers/Handler.java

Violation Line
Avoid modifiers which are implied by the context 32
Avoid modifiers which are implied by the context 33
Avoid modifiers which are implied by the context 34
Avoid modifiers which are implied by the context 35

org/dbunit/dataset/datatype/DateDataType.java

Violation Line
Avoid empty catch blocks 108111

org/dbunit/dataset/datatype/IDataTypeFactory.java

Violation Line
Avoid modifiers which are implied by the context 4142
Avoid modifiers which are implied by the context 6566

org/dbunit/dataset/datatype/IDbProductRelatable.java

Violation Line
Avoid modifiers which are implied by the context 43

org/dbunit/dataset/datatype/TimeDataType.java

Violation Line
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 67
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 75
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 81
Unnecessary use of fully qualified name 'java.sql.Time.valueOf' due to existing import 'java.sql.Time' 95
Unnecessary use of fully qualified name 'java.sql.Time.valueOf' due to existing import 'java.sql.Time' 104
Unnecessary use of fully qualified name 'java.sql.Time' due to existing import 'java.sql.Time' 142

org/dbunit/dataset/datatype/TimestampDataType.java

Violation Line
Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 76
Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 84
Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 90
Unnecessary use of fully qualified name 'java.sql.Timestamp.valueOf' due to existing import 'java.sql.Timestamp' 104
Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 127
Avoid empty catch blocks 128131
Unnecessary use of fully qualified name 'java.sql.Timestamp.valueOf' due to existing import 'java.sql.Timestamp' 137
Unnecessary use of fully qualified name 'java.util.TimeZone.getDefault' due to existing import 'java.util.TimeZone' 149
Useless parentheses. 158
Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' 209

org/dbunit/dataset/excel/XlsTable.java

Violation Line
Avoid unused imports such as 'java.util.TimeZone' 29
Useless parentheses. 260
These nested if statements could be combined 262266

org/dbunit/dataset/filter/IColumnFilter.java

Violation Line
Avoid modifiers which are implied by the context 46

org/dbunit/dataset/filter/IRowFilter.java

Violation Line
Avoid modifiers which are implied by the context 39

org/dbunit/dataset/filter/ITableFilter.java

Violation Line
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 5051

org/dbunit/dataset/filter/ITableFilterSimple.java

Violation Line
Avoid modifiers which are implied by the context 38

org/dbunit/dataset/filter/PatternMatcher.java

Violation Line
Avoid using a branching statement as the last in a loop. 281

org/dbunit/dataset/stream/IDataSetConsumer.java

Violation Line
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 60
Avoid modifiers which are implied by the context 67

org/dbunit/dataset/stream/IDataSetProducer.java

Violation Line
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 46

org/dbunit/dataset/stream/StreamingIterator.java

Violation Line
Avoid empty while statements 121

org/dbunit/dataset/xml/FlatDtdProducer.java

Violation Line
Useless parentheses. 228

org/dbunit/dataset/xml/FlatDtdWriter.java

Violation Line
Useless parentheses. 168
Useless parentheses. 208

org/dbunit/dataset/xml/XmlProducer.java

Violation Line
Useless parentheses. 196
Useless parentheses. 319

org/dbunit/ext/db2/Db2MetadataHandler.java

Violation Line
These nested if statements could be combined 97103

org/dbunit/ext/mckoi/MckoiDataTypeFactory.java

Violation Line
Useless parentheses. 70
Useless parentheses. 71
Useless parentheses. 72
Useless parentheses. 74
Useless parentheses. 75
Useless parentheses. 76
Useless parentheses. 77
Useless parentheses. 78
Useless parentheses. 79
Useless parentheses. 81
Useless parentheses. 82
Useless parentheses. 83
Useless parentheses. 84
Useless parentheses. 85
Useless parentheses. 87
Useless parentheses. 88
Useless parentheses. 89
Useless parentheses. 90
Useless parentheses. 91
Useless parentheses. 92
Useless parentheses. 93
Useless parentheses. 94
Useless parentheses. 95
Useless parentheses. 97
Useless parentheses. 98
Useless parentheses. 99
Useless parentheses. 100
Useless parentheses. 101

org/dbunit/ext/mssql/InsertIdentityOperation.java

Violation Line
Useless parentheses. 105
Useless parentheses. 114

org/dbunit/ext/mssql/MsSqlDataTypeFactory.java

Violation Line
These nested if statements could be combined 7578

org/dbunit/ext/mysql/MySqlDataTypeFactory.java

Violation Line
These nested if statements could be combined 99101

org/dbunit/ext/oracle/OracleBlobDataType.java

Violation Line
Avoid unused imports such as 'oracle.sql.BLOB' 23
Unnecessary use of fully qualified name 'oracle.sql.BLOB' due to existing import 'oracle.sql.BLOB' 72
Unnecessary use of fully qualified name 'oracle.sql.BLOB.createTemporary' due to existing import 'oracle.sql.BLOB' 75
Unnecessary use of fully qualified name 'oracle.sql.BLOB.DURATION_SESSION' due to existing import 'oracle.sql.BLOB' 75
Unnecessary use of fully qualified name 'oracle.sql.BLOB.MODE_READWRITE' due to existing import 'oracle.sql.BLOB' 76
Unnecessary use of fully qualified name 'oracle.sql.BLOB' due to existing import 'oracle.sql.BLOB' 106

org/dbunit/ext/oracle/OracleClobDataType.java

Violation Line
Avoid empty catch blocks 105108

org/dbunit/ext/oracle/OracleSdoElemInfoArray.java

Violation Line
Useless parentheses. 148
Useless parentheses. 148

org/dbunit/ext/oracle/OracleSdoHelper.java

Violation Line
Useless parentheses. 40
Useless parentheses. 41
Useless parentheses. 4345

org/dbunit/ext/oracle/OracleSdoOrdinateArray.java

Violation Line
Useless parentheses. 148
Useless parentheses. 148

org/dbunit/ext/oracle/OracleSdoPointType.java

Violation Line
Useless parentheses. 122
Useless parentheses. 122

org/dbunit/ext/postgresql/PostgreSQLOidDataType.java

Violation Line
Useless parentheses. 87

org/dbunit/operation/AbstractBatchOperation.java

Violation Line
Avoid empty catch blocks 226232

org/dbunit/operation/InsertOperation.java

Violation Line
Useless parentheses. 122
Useless parentheses. 142
Useless parentheses. 142

org/dbunit/operation/RefreshOperation.java

Violation Line
Avoid empty catch blocks 119125
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 360

org/dbunit/util/Base64.java

Violation Line
Avoid unused private fields such as 'BAD_ENCODING'. 124
Avoid unused local variables such as 'ib'. 154
Avoid empty while statements 156157
Avoid unused private methods such as 'encode3to4(byte)'. 179
Useless parentheses. 250
Useless parentheses. 251
Useless parentheses. 252
Useless parentheses. 257
Useless parentheses. 264
Useless parentheses. 271
Useless parentheses. 380

org/dbunit/util/SQLHelper.java

Violation Line
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 76
Useless parentheses. 365
These nested if statements could be combined 612613
These nested if statements could be combined 629630
Useless parentheses. 648

org/dbunit/util/concurrent/BoundedBuffer.java

Violation Line
Useless parentheses. 151
Useless parentheses. 195

org/dbunit/util/concurrent/BoundedChannel.java

Violation Line
Avoid modifiers which are implied by the context 37

org/dbunit/util/concurrent/BoundedLinkedQueue.java

Violation Line
Useless parentheses. 274

org/dbunit/util/concurrent/Channel.java

Violation Line
Avoid modifiers which are implied by the context 249
Avoid modifiers which are implied by the context 267
Avoid modifiers which are implied by the context 280
Avoid modifiers which are implied by the context 299
Avoid modifiers which are implied by the context 306

org/dbunit/util/concurrent/Executor.java

Violation Line
Avoid modifiers which are implied by the context 69

org/dbunit/util/concurrent/LinkedQueue.java

Violation Line
Useless parentheses. 190

org/dbunit/util/concurrent/PropertyChangeMulticaster.java

Violation Line
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 419
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 420

org/dbunit/util/concurrent/Puttable.java

Violation Line
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 69

org/dbunit/util/concurrent/Sync.java

Violation Line
Avoid modifiers which are implied by the context 273
Avoid modifiers which are implied by the context 299
Avoid modifiers which are implied by the context 313
Avoid modifiers which are implied by the context 316
Avoid modifiers which are implied by the context 319
Avoid modifiers which are implied by the context 322
Avoid modifiers which are implied by the context 325
Avoid modifiers which are implied by the context 328
Avoid modifiers which are implied by the context 334
Avoid modifiers which are implied by the context 337

org/dbunit/util/concurrent/SynchronizedInt.java

Violation Line
Useless parentheses. 85
Useless parentheses. 238

org/dbunit/util/concurrent/Takable.java

Violation Line
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 65

org/dbunit/util/xml/XmlWriter.java

Violation Line
Do not use if statements that are always true or always false 383
Useless parentheses. 751
Useless parentheses. 783
Useless parentheses. 783784
Useless parentheses. 783
Useless parentheses. 784
Avoid unused private methods such as 'replace(String,String,String)'. 788789
Avoid unused private methods such as 'setEncoding(String)'. 825