PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/dbunit/database/DatabaseConfig.java

Violation Line
These nested if statements could be combined 248 - 251

org/dbunit/database/DatabaseDataSet.java

Violation Line
These nested if statements could be combined 338 - 339

org/dbunit/database/ForwardOnlyResultSetTableFactory.java

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

org/dbunit/dataset/DefaultTable.java

Violation Line
Avoid empty catch blocks 144 - 148

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

Violation Line
These nested if statements could be combined 91 - 92

org/dbunit/dataset/datatype/DateDataType.java

Violation Line
Avoid empty catch blocks 94 - 97

org/dbunit/dataset/datatype/TimestampDataType.java

Violation Line
Avoid empty catch blocks 94 - 97

org/dbunit/dataset/excel/XlsTable.java

Violation Line
These nested if statements could be combined 266 - 270

org/dbunit/dataset/stream/StreamingIterator.java

Violation Line
Avoid empty while statements 121

org/dbunit/ext/db2/Db2MetadataHandler.java

Violation Line
These nested if statements could be combined 97 - 103

org/dbunit/ext/h2/H2DataTypeFactory.java

Violation Line
Avoid duplicate imports such as 'java.util.Arrays' 26
Avoid duplicate imports such as 'java.util.Collection' 27
Avoid duplicate imports such as 'java.util.Arrays' 29
Avoid duplicate imports such as 'java.util.Collection' 30
Avoid duplicate imports such as 'java.util.Arrays' 32
Avoid duplicate imports such as 'java.util.Collection' 33

org/dbunit/ext/mysql/MySqlDataTypeFactory.java

Violation Line
These nested if statements could be combined 93 - 95

org/dbunit/ext/oracle/OracleBlobDataType.java

Violation Line
Avoid unused imports such as 'oracle.sql.BLOB' 23

org/dbunit/operation/AbstractBatchOperation.java

Violation Line
Avoid empty catch blocks 198 - 204

org/dbunit/operation/RefreshOperation.java

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

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 156 - 157
Avoid unused private methods such as 'encode3to4(byte)'. 179

org/dbunit/util/SQLHelper.java

Violation Line
These nested if statements could be combined 613 - 614

org/dbunit/util/concurrent/PropertyChangeMulticaster.java

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

org/dbunit/util/xml/XmlWriter.java

Violation Line
Do not use if statements that are always true or always false 345
Avoid unused private methods such as 'replace(String,String,String)'. 703