FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.3.9

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
1114601

Files

ClassBugs
org.apache.ojb.broker.platforms.KualiMySQLSequenceManagerImpl1
org.kuali.rice.core.framework.persistence.jdbc.datasource.RiceXADataSource1
org.kuali.rice.core.framework.persistence.jdbc.datasource.RiceXADataSource$PreparedStatementCachingConnection1
org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria6
org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$AndCriteria1
org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$ExistsCriteria1
org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$OrCriteria1
org.kuali.rice.core.framework.persistence.jdbc.sql.SqlBuilder1
org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase4
org.kuali.rice.core.framework.persistence.jpa.OrmUtils1
org.kuali.rice.core.framework.persistence.jpa.criteria.Criteria1
org.kuali.rice.core.framework.persistence.jpa.metadata.CollectionDescriptor2
org.kuali.rice.core.framework.persistence.jpa.metadata.EntityDescriptor1
org.kuali.rice.core.framework.persistence.jpa.metadata.FieldDescriptor1
org.kuali.rice.core.framework.persistence.jpa.metadata.MetadataManager2
org.kuali.rice.core.framework.persistence.jpa.metadata.ObjectDescriptor2
org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalPercentFieldType1
org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalPercentageFieldType1
org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiIntegerFieldType1
org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiIntegerPercentageFieldType1
org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiPercentFieldType1
org.kuali.rice.core.framework.persistence.ojb.BaseOjbConfigurer2
org.kuali.rice.core.framework.persistence.ojb.TransactionManagerFactory1
org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion2
org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion22
org.kuali.rice.core.framework.persistence.ojb.conversion.OjbKualiIntegerFieldConversion1
org.kuali.rice.core.framework.persistence.platform.MySQLDatabasePlatform4
org.kuali.rice.core.framework.persistence.platform.OracleDatabasePlatform2

org.apache.ojb.broker.platforms.KualiMySQLSequenceManagerImpl

BugCategoryDetailsLinePriority

org.kuali.rice.core.framework.persistence.jdbc.datasource.RiceXADataSource

BugCategoryDetailsLinePriority
org.kuali.rice.core.framework.persistence.jdbc.datasource.RiceXADataSource doesn't override org.enhydra.jdbc.standard.StandardDataSource.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALS44Medium

org.kuali.rice.core.framework.persistence.jdbc.datasource.RiceXADataSource$PreparedStatementCachingConnection

BugCategoryDetailsLinePriority
org.kuali.rice.core.framework.persistence.jdbc.datasource.RiceXADataSource$PreparedStatementCachingConnection doesn't override org.apache.commons.dbcp.DelegatingConnection.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALS142Medium

org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria

BugCategoryDetailsLinePriority
Method org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria.getParameteres(List, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR391Medium
Method org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria.prepareParameters(Query, List, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR411Medium
Method org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria.buildWhere(Criteria) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION367Medium
Method org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria.in(String, List, Class) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION266Medium
Method org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria.notIn(String, List, Class) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION277Medium
Method org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria.toQuery(QueryByCriteria$QueryByCriteriaType) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION325Medium

org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$AndCriteria

BugCategoryDetailsLinePriority
Should org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$AndCriteria be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC427Medium

org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$ExistsCriteria

BugCategoryDetailsLinePriority
Should org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$ExistsCriteria be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC443Medium

org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$OrCriteria

BugCategoryDetailsLinePriority
Should org.kuali.rice.core.framework.persistence.jdbc.sql.Criteria$OrCriteria be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC435Medium

org.kuali.rice.core.framework.persistence.jdbc.sql.SqlBuilder

BugCategoryDetailsLinePriority
Comparison of String parameter using == or != in org.kuali.rice.core.framework.persistence.jdbc.sql.SqlBuilder.addLogicalOperatorCriteria(String, String, Class, boolean, Criteria, String, boolean) BAD_PRACTICEES_COMPARING_PARAMETER_STRING_WITH_EQ180Medium

org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase

BugCategoryDetailsLinePriority
Dead store to otherClass in org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase.equals(Object)STYLEDLS_DEAD_LOCAL_STORE33Medium
org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase.equals(Object) does not check for null argumentBAD_PRACTICENP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT32High
Nullcheck of o at line 37 of value previously dereferenced in org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase.equals(Object)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE33High
Exception is caught when Exception is not thrown in org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase.toString()STYLEREC_CATCH_EXCEPTION138Medium

org.kuali.rice.core.framework.persistence.jpa.OrmUtils

BugCategoryDetailsLinePriority
org.kuali.rice.core.framework.persistence.jpa.OrmUtils.isJpaAnnotated(Class) invokes inefficient Boolean constructor; use Boolean.valueOf(...) insteadPERFORMANCEDM_BOOLEAN_CTOR140Medium

org.kuali.rice.core.framework.persistence.jpa.criteria.Criteria

BugCategoryDetailsLinePriority
Dead store to valueLen in org.kuali.rice.core.framework.persistence.jpa.criteria.Criteria.fixSearchPattern(String)STYLEDLS_DEAD_LOCAL_STORE393Medium

org.kuali.rice.core.framework.persistence.jpa.metadata.CollectionDescriptor

BugCategoryDetailsLinePriority
org.kuali.rice.core.framework.persistence.jpa.metadata.CollectionDescriptor.getCascade() may expose internal representation by returning CollectionDescriptor.cascadeMALICIOUS_CODEEI_EXPOSE_REP86Medium
org.kuali.rice.core.framework.persistence.jpa.metadata.CollectionDescriptor.setCascade(CascadeType[]) may expose internal representation by storing an externally mutable object into CollectionDescriptor.cascadeMALICIOUS_CODEEI_EXPOSE_REP290Medium

org.kuali.rice.core.framework.persistence.jpa.metadata.EntityDescriptor

BugCategoryDetailsLinePriority
Class org.kuali.rice.core.framework.persistence.jpa.metadata.EntityDescriptor defines non-transient non-serializable instance field sequenceBAD_PRACTICESE_BAD_FIELDMedium

org.kuali.rice.core.framework.persistence.jpa.metadata.FieldDescriptor

BugCategoryDetailsLinePriority
org.kuali.rice.core.framework.persistence.jpa.metadata.FieldDescriptor defines compareTo(Object) and uses Object.equals()BAD_PRACTICEEQ_COMPARETO_USE_OBJECT_EQUALS208Medium

org.kuali.rice.core.framework.persistence.jpa.metadata.MetadataManager

BugCategoryDetailsLinePriority
Method org.kuali.rice.core.framework.persistence.jpa.metadata.MetadataManager.convertPrimaryKeyMapToObject(Class, Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR217Medium

org.kuali.rice.core.framework.persistence.jpa.metadata.ObjectDescriptor

BugCategoryDetailsLinePriority
org.kuali.rice.core.framework.persistence.jpa.metadata.ObjectDescriptor.getCascade() may expose internal representation by returning ObjectDescriptor.cascadeMALICIOUS_CODEEI_EXPOSE_REP68Medium
org.kuali.rice.core.framework.persistence.jpa.metadata.ObjectDescriptor.setCascade(CascadeType[]) may expose internal representation by storing an externally mutable object into ObjectDescriptor.cascadeMALICIOUS_CODEEI_EXPOSE_REP272Medium

org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalPercentFieldType

BugCategoryDetailsLinePriority
instanceof will always return true in org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalPercentFieldType.nullSafeGet(ResultSet, String[], Object), since all java.math.BigDecimal are instances of java.math.BigDecimalSTYLEBC_VACUOUS_INSTANCEOF52Medium

org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalPercentageFieldType

BugCategoryDetailsLinePriority
instanceof will always return true in org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalPercentageFieldType.nullSafeGet(ResultSet, String[], Object), since all java.math.BigDecimal are instances of java.math.BigDecimalSTYLEBC_VACUOUS_INSTANCEOF47Medium

org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiIntegerFieldType

BugCategoryDetailsLinePriority
instanceof will always return true in org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiIntegerFieldType.nullSafeGet(ResultSet, String[], Object), since all Long are instances of LongSTYLEBC_VACUOUS_INSTANCEOF47Medium

org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiIntegerPercentageFieldType

BugCategoryDetailsLinePriority
Impossible cast from org.kuali.rice.core.util.type.KualiInteger to Long in org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiIntegerPercentageFieldType.nullSafeSet(PreparedStatement, Object, int)CORRECTNESSBC_IMPOSSIBLE_CAST73High

org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiPercentFieldType

BugCategoryDetailsLinePriority
instanceof will always return true in org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiPercentFieldType.nullSafeGet(ResultSet, String[], Object), since all java.math.BigDecimal are instances of java.math.BigDecimalSTYLEBC_VACUOUS_INSTANCEOF48Medium

org.kuali.rice.core.framework.persistence.ojb.BaseOjbConfigurer

BugCategoryDetailsLinePriority
new org.kuali.rice.core.framework.persistence.ojb.BaseOjbConfigurer(String[], String) may expose internal representation by storing an externally mutable object into BaseOjbConfigurer.jcdAliasesMALICIOUS_CODEEI_EXPOSE_REP2100Medium
org.kuali.rice.core.framework.persistence.ojb.BaseOjbConfigurer.setJcdAliases(String[]) may expose internal representation by storing an externally mutable object into BaseOjbConfigurer.jcdAliasesMALICIOUS_CODEEI_EXPOSE_REP2246Medium

org.kuali.rice.core.framework.persistence.ojb.TransactionManagerFactory

BugCategoryDetailsLinePriority

org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion

BugCategoryDetailsLinePriority
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion.javaToSql(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE32Medium
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion.sqlToJava(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE57Medium

org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion2

BugCategoryDetailsLinePriority
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion2.javaToSql(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE33Medium
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion2.sqlToJava(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE60Medium

org.kuali.rice.core.framework.persistence.ojb.conversion.OjbKualiIntegerFieldConversion

BugCategoryDetailsLinePriority
Method org.kuali.rice.core.framework.persistence.ojb.conversion.OjbKualiIntegerFieldConversion.javaToSql(Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR32Medium

org.kuali.rice.core.framework.persistence.platform.MySQLDatabasePlatform

BugCategoryDetailsLinePriority
Method org.kuali.rice.core.framework.persistence.platform.MySQLDatabasePlatform.getNextValSQL(String, EntityManager) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR90Medium
Method org.kuali.rice.core.framework.persistence.platform.MySQLDatabasePlatform.getNextValSQL(String, PersistenceBroker) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR68Medium
org.kuali.rice.core.framework.persistence.platform.MySQLDatabasePlatform.getNextValSQL(String, PersistenceBroker) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE60Medium

org.kuali.rice.core.framework.persistence.platform.OracleDatabasePlatform

BugCategoryDetailsLinePriority
Method org.kuali.rice.core.framework.persistence.platform.OracleDatabasePlatform.getNextValSQL(String, EntityManager) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR66Medium
Method org.kuali.rice.core.framework.persistence.platform.OracleDatabasePlatform.getNextValSQL(String, PersistenceBroker) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR81Medium