PMD Results

The following document contains the results of PMD .

Summary

Files Errors
13 35

Files

Files Violations
org/j2ee/dao/DAOFactory.java 1
org/j2ee/dao/DAOHibernateActionProcessorImpl.java 3
org/j2ee/dao/HibernateDAOAction.java 4
org/j2ee/dao/errors/AbstractErrorMapper.java 3
org/j2ee/dao/errors/DB2ErrorMapper.java 5
org/j2ee/dao/errors/ErrorMapper.java 1
org/j2ee/dao/errors/HSQLErrorMapper.java 5
org/j2ee/dao/errors/OracleErrorMapper.java 4
org/j2ee/dao/gen/DAOGenerator.java 2
org/j2ee/dao/gen/DAOGeneratorTask.java 1
org/j2ee/dao/gen/GenData.java 1
org/j2ee/dao/gen/Main.java 1
org/j2ee/dao/gen/Util.java 4

org/j2ee/dao/DAOFactory.java

Violation Line
Avoid empty catch blocks 96

org/j2ee/dao/DAOHibernateActionProcessorImpl.java

Violation Line
Avoid unused imports such as 'Dialect' 19
Avoid unused local variables such as 'names' 285
Avoid unused local variables such as 'names' 299

org/j2ee/dao/HibernateDAOAction.java

Violation Line
Avoid unused imports such as 'CallableStatement' 5
Avoid unused imports such as 'PreparedStatement' 6
Avoid unused imports such as 'ResultSet' 7
Avoid unused imports such as 'SQLException' 8

org/j2ee/dao/errors/AbstractErrorMapper.java

Violation Line
Avoid duplicate imports such as 'net.sf.hibernate.JDBCException' 8
Avoid duplicate imports such as 'net.sf.hibernate.ObjectNotFoundException' 9
Avoid unused local variables such as 'onfe' 57

org/j2ee/dao/errors/DB2ErrorMapper.java

Violation Line
Avoid unused imports such as 'SQLException' 5
Avoid unused imports such as 'JDBCException' 8
Avoid unused imports such as 'ObjectNotFoundException' 9
No need to import a type that's in the same package 16
Avoid unused private fields such as 'log' 31

org/j2ee/dao/errors/ErrorMapper.java

Violation Line
Avoid unused imports such as 'DAOException' 4

org/j2ee/dao/errors/HSQLErrorMapper.java

Violation Line
Avoid unused imports such as 'SQLException' 5
Avoid unused imports such as 'JDBCException' 8
Avoid unused imports such as 'ObjectNotFoundException' 9
No need to import a type that's in the same package 16
Avoid unused private fields such as 'log' 32

org/j2ee/dao/errors/OracleErrorMapper.java

Violation Line
Avoid unused imports such as 'SQLException' 5
Avoid unused imports such as 'JDBCException' 8
Avoid unused imports such as 'ObjectNotFoundException' 9
Avoid unused private fields such as 'log' 30

org/j2ee/dao/gen/DAOGenerator.java

Violation Line
Avoid empty catch blocks 253
Avoid empty catch blocks 263

org/j2ee/dao/gen/DAOGeneratorTask.java

Violation Line
Avoid empty catch blocks 149

org/j2ee/dao/gen/GenData.java

Violation Line
Avoid unused imports such as 'HashMap' 5

org/j2ee/dao/gen/Main.java

Violation Line
Avoid empty catch blocks 94

org/j2ee/dao/gen/Util.java

Violation Line
Avoid empty catch blocks 87
Avoid empty catch blocks 109
This for loop could be simplified to a while loop 324
This for loop could be simplified to a while loop 340