FindBugs Results

The following document contains the results of FindBugs.

Summary

Files Errors
23 50

Files

Files Violations
org.apache.torque.task.TorqueSQLExec$Transaction 1
org.apache.torque.task.TorqueDataSQLTask 1
org.apache.torque.task.TorqueJDBCTransformTask 1
org.apache.torque.task.TorqueSQLExec 8
org.apache.torque.task.TorqueDataModelTask 2
org.apache.torque.task.TorqueSQLTask 1
org.apache.torque.task.TorqueDocumentationTask 1
org.apache.torque.task.TorqueDataDumpTask 1
org.apache.torque.task.TorqueSQLTransformTask 2
org.apache.torque.engine.platform.PlatformFactory 1
org.apache.torque.engine.database.transform.XmlToData 2
org.apache.torque.engine.database.transform.SQLToAppData 9
org.apache.torque.engine.database.transform.DTDResolver 1
org.apache.torque.engine.database.transform.XmlToAppData 2
org.apache.torque.engine.database.model.ForeignKey 4
org.apache.torque.engine.database.model.JavaNameGenerator 2
org.apache.torque.engine.database.model.Column 4
org.apache.torque.engine.database.model.Table 1
org.apache.torque.engine.database.model.SchemaType 1
org.apache.torque.engine.database.model.IdMethodParameter 2
org.apache.torque.engine.database.transform.XmlToData$ColumnValue 1
org.apache.torque.engine.database.transform.XmlToData$DataRow 1
org.apache.torque.engine.database.model.Unique 1

org.apache.torque.task.TorqueSQLExec$Transaction

Violation Line
OS: org.apache.torque.task.TorqueSQLExec$Transaction.runTransaction(java.io.PrintStream) may fail to close stream on exception 919

org.apache.torque.task.TorqueDataSQLTask

Violation Line
OS: org.apache.torque.task.TorqueDataSQLTask.initControlContext() may fail to close stream on exception 186

org.apache.torque.task.TorqueJDBCTransformTask

Violation Line
DLS: Dead store to local variable in method org.apache.torque.task.TorqueJDBCTransformTask.getTableNames(java.sql.DatabaseMetaData) 375

org.apache.torque.task.TorqueSQLExec

Violation Line
Dm: Method org.apache.torque.task.TorqueSQLExec.setRdbms(String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 360
Dm: Method org.apache.torque.task.TorqueSQLExec.setVersion(String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 370
Dm: Method org.apache.torque.task.TorqueSQLExec.isValidRdbms(java.sql.Connection) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 727
RCN: Redundant nullcheck of value known to be non-null org.apache.torque.task.TorqueSQLExec.isValidRdbms(java.sql.Connection) 730
RCN: Redundant nullcheck of value known to be non-null org.apache.torque.task.TorqueSQLExec.isValidRdbms(java.sql.Connection) 744
OS: org.apache.torque.task.TorqueSQLExec.execute() may fail to close stream on exception 421
WMI: Method org.apache.torque.task.TorqueSQLExec.execute() makes inefficient use of keySet iterator instead of entrySet iterator 438
WMI: Method org.apache.torque.task.TorqueSQLExec.execute() makes inefficient use of keySet iterator instead of entrySet iterator 463

org.apache.torque.task.TorqueDataModelTask

Violation Line
EI: org.apache.torque.task.TorqueDataModelTask.getDataModelDbMap() may expose internal representation by returning org.apache.torque.task.TorqueDataModelTask.dataModelDbMap 136
WMI: Method org.apache.torque.task.TorqueDataModelTask.setContextProperties(String) makes inefficient use of keySet iterator instead of entrySet iterator 358

org.apache.torque.task.TorqueSQLTask

Violation Line
OS: org.apache.torque.task.TorqueSQLTask.createSqlDbMap() may fail to close stream on exception 131

org.apache.torque.task.TorqueDocumentationTask

Violation Line
ISC: Method org.apache.torque.task.TorqueDocumentationTask.initControlContext() needlessly instantiates a class that only supplies static methods 62

org.apache.torque.task.TorqueDataDumpTask

Violation Line
ISC: Method org.apache.torque.task.TorqueDataDumpTask.initControlContext() needlessly instantiates a class that only supplies static methods 206

org.apache.torque.task.TorqueSQLTransformTask

Violation Line
OS: org.apache.torque.task.TorqueSQLTransformTask.execute() may fail to close stream on exception 103
REC: Method org.apache.torque.task.TorqueSQLTransformTask.execute() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught 112

org.apache.torque.engine.platform.PlatformFactory

Violation Line
Dm: Method org.apache.torque.engine.platform.PlatformFactory.getClassnameFor(String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 83

org.apache.torque.engine.database.transform.XmlToData

Violation Line
RI: Class org.apache.torque.engine.database.transform.XmlToData implements same interface as superclass. 0
UwF: Field not initialized in constructor: org.apache.torque.engine.database.transform.XmlToData.data 0

org.apache.torque.engine.database.transform.SQLToAppData

Violation Line
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.create() invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 145
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.create_Table_Column(org.apache.torque.engine.database.model.Table) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 201
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.create_Table_Column_Primary(org.apache.torque.engine.database.model.Table) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 227
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.create_Table_Column_Unique(org.apache.torque.engine.database.model.Table) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 274
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.create_Table_Column_Foreign(org.apache.torque.engine.database.model.Table) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 309
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.create_Table_Column_Data(org.apache.torque.engine.database.model.Table) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 397
Dm: Method org.apache.torque.engine.database.transform.SQLToAppData.execute() invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 547
UwF: Field not initialized in constructor: org.apache.torque.engine.database.transform.SQLToAppData.appDataDB 0
UwF: Field not initialized in constructor: org.apache.torque.engine.database.transform.SQLToAppData.tokens 0

org.apache.torque.engine.database.transform.DTDResolver

Violation Line
UI: Usage of GetResource in org.apache.torque.engine.database.transform.DTDResolver.<init>() may be unsafe if class is extended 57

org.apache.torque.engine.database.transform.XmlToAppData

Violation Line
REC: Method org.apache.torque.engine.database.transform.XmlToAppData.parseFile(String) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught 170
REC: Method org.apache.torque.engine.database.transform.XmlToAppData.startElement(String,String,String,org.xml.sax.Attributes) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught 308

org.apache.torque.engine.database.model.ForeignKey

Violation Line
Dm: Method org.apache.torque.engine.database.model.ForeignKey.normalizeFKey(String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 73
UwF: Field not initialized in constructor: org.apache.torque.engine.database.model.ForeignKey.onDelete 0
UwF: Field not initialized in constructor: org.apache.torque.engine.database.model.ForeignKey.onUpdate 0
UwF: Field not initialized in constructor: org.apache.torque.engine.database.model.ForeignKey.parentTable 0

org.apache.torque.engine.database.model.JavaNameGenerator

Violation Line
Dm: Method org.apache.torque.engine.database.model.JavaNameGenerator.underscoreMethod(String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 104
Dm: Method org.apache.torque.engine.database.model.JavaNameGenerator.underscoreOmitSchemaMethod(String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 147

org.apache.torque.engine.database.model.Column

Violation Line
Dm: Method org.apache.torque.engine.database.model.Column.setTypeFromString(String,String) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead 912
CD: Class org.apache.torque.engine.database.model.Column has a circular dependency with other classes. 0
CD: Class org.apache.torque.engine.database.model.Column has a circular dependency with other classes. 0
CD: Class org.apache.torque.engine.database.model.Column has a circular dependency with other classes. 0

org.apache.torque.engine.database.model.Table

Violation Line
Dm: org.apache.torque.engine.database.model.Table.toString() invokes dubious Boolean constructor; use Boolean.valueOf(...) instead 1010

org.apache.torque.engine.database.model.SchemaType

Violation Line
SnVI: org.apache.torque.engine.database.model.SchemaType is Serializable; consider declaring a serialVersionUID 0

org.apache.torque.engine.database.model.IdMethodParameter

Violation Line
UwF: Field not initialized in constructor: org.apache.torque.engine.database.model.IdMethodParameter.parentTable 0
CD: Class org.apache.torque.engine.database.model.IdMethodParameter has a circular dependency with other classes. 0

org.apache.torque.engine.database.transform.XmlToData$ColumnValue

Violation Line
SIC: Should org.apache.torque.engine.database.transform.XmlToData$ColumnValue be a _static_ inner class? 0

org.apache.torque.engine.database.transform.XmlToData$DataRow

Violation Line
SIC: Should org.apache.torque.engine.database.transform.XmlToData$DataRow be a _static_ inner class? 0

org.apache.torque.engine.database.model.Unique

Violation Line
CD: Class org.apache.torque.engine.database.model.Unique has a circular dependency with other classes. 0