PMD Results

The following document contains the results of PMD 4.3.

Files

org/dbunit/database/DatabaseConfig.java

ViolationLine
These nested if statements could be combined251 - 254

org/dbunit/database/DatabaseDataSet.java

ViolationLine
These nested if statements could be combined344 - 347

org/dbunit/database/ForwardOnlyResultSetTableFactory.java

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

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

ViolationLine
These nested if statements could be combined91 - 92

org/dbunit/dataset/datatype/DateDataType.java

ViolationLine
Avoid using java.lang.ThreadGroup; it is not thread safe72
Avoid using java.lang.ThreadGroup; it is not thread safe78
Avoid using java.lang.ThreadGroup; it is not thread safe91
Avoid empty catch blocks94 - 97

org/dbunit/dataset/datatype/TimeDataType.java

ViolationLine
Avoid using java.lang.ThreadGroup; it is not thread safe75
Avoid using java.lang.ThreadGroup; it is not thread safe81

org/dbunit/dataset/datatype/TimestampDataType.java

ViolationLine
Avoid using java.lang.ThreadGroup; it is not thread safe78
Avoid using java.lang.ThreadGroup; it is not thread safe84
Avoid using java.lang.ThreadGroup; it is not thread safe105
Avoid empty catch blocks107 - 110

org/dbunit/dataset/DefaultTable.java

ViolationLine
Avoid empty catch blocks144 - 148

org/dbunit/dataset/excel/XlsTable.java

ViolationLine
These nested if statements could be combined266 - 270

org/dbunit/dataset/stream/StreamingIterator.java

ViolationLine
Avoid empty while statements121

org/dbunit/ext/db2/Db2MetadataHandler.java

ViolationLine
These nested if statements could be combined97 - 103

org/dbunit/ext/h2/H2DataTypeFactory.java

ViolationLine
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/mssql/MsSqlDataTypeFactory.java

ViolationLine
These nested if statements could be combined73 - 76

org/dbunit/ext/mysql/MySqlDataTypeFactory.java

ViolationLine
These nested if statements could be combined93 - 95

org/dbunit/ext/oracle/OracleBlobDataType.java

ViolationLine
Avoid unused imports such as 'oracle.sql.BLOB'23

org/dbunit/ext/oracle/OracleSdoGeometryDataType.java

ViolationLine
Avoid unused imports such as 'java.sql.Connection'25

org/dbunit/operation/AbstractBatchOperation.java

ViolationLine
Avoid empty catch blocks201 - 207

org/dbunit/operation/RefreshOperation.java

ViolationLine
Avoid empty catch blocks119 - 125
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet.360

org/dbunit/util/Base64.java

ViolationLine
Avoid unused private fields such as 'BAD_ENCODING'.124
Avoid unused local variables such as 'ib'.154
Avoid empty while statements156 - 157
Avoid unused private methods such as 'encode3to4(byte)'.179
Avoid using java.lang.ThreadGroup; it is not thread safe304
Avoid using java.lang.ThreadGroup; it is not thread safe306
Avoid using java.lang.ThreadGroup; it is not thread safe575
Avoid using java.lang.ThreadGroup; it is not thread safe576
Avoid using java.lang.ThreadGroup; it is not thread safe1016

org/dbunit/util/concurrent/PropertyChangeMulticaster.java

ViolationLine
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/fileloader/DataFileLoader.java

ViolationLine
Avoid unused imports such as 'org.dbunit.DatabaseUnitRuntimeException'25

org/dbunit/util/SQLHelper.java

ViolationLine
These nested if statements could be combined619 - 620
These nested if statements could be combined636 - 637

org/dbunit/util/xml/XmlWriter.java

ViolationLine
Do not use if statements that are always true or always false345
Avoid using java.lang.ThreadGroup; it is not thread safe539
Avoid using java.lang.ThreadGroup; it is not thread safe550
Avoid unused private methods such as 'replace(String,String,String)'.703