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
72129903

Files

ClassBugs
org.apache.ojb.broker.Identity4
org.apache.ojb.broker.PBKey1
org.apache.ojb.broker.PBLifeCycleEvent1
org.apache.ojb.broker.PBLifeCycleEvent$Type2
org.apache.ojb.broker.PBStateEvent1
org.apache.ojb.broker.PBStateEvent$Type2
org.apache.ojb.broker.accesslayer.ChainingIterator1
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl$ConPoolFactory1
org.apache.ojb.broker.accesslayer.PkIterator1
org.apache.ojb.broker.accesslayer.ReportQueryRsIterator1
org.apache.ojb.broker.accesslayer.RsIterator1
org.apache.ojb.broker.accesslayer.SqlBasedReportQueryRsIterator1
org.apache.ojb.broker.accesslayer.StatementManager1
org.apache.ojb.broker.accesslayer.StatementsForClassImpl2
org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion1
org.apache.ojb.broker.accesslayer.conversions.Int2IntegerFieldConversion1
org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion4
org.apache.ojb.broker.accesslayer.sql.SqlMNStatement1
org.apache.ojb.broker.accesslayer.sql.SqlProcedureStatement1
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement2
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$Join2
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias2
org.apache.ojb.broker.accesslayer.sql.SqlSelectMNStatement1
org.apache.ojb.broker.ant.DBUtility15
org.apache.ojb.broker.ant.PreparedModel1
org.apache.ojb.broker.ant.RepositoryDataTask4
org.apache.ojb.broker.ant.RepositoryVerifierHandler4
org.apache.ojb.broker.ant.VerifyMappingsTask3
org.apache.ojb.broker.ant.WriteDataSqlToFileCommand1
org.apache.ojb.broker.ant.WriteDataToDatabaseCommand2
org.apache.ojb.broker.cache.ObjectCacheDefaultImpl1
org.apache.ojb.broker.cache.ObjectCacheSoftImpl1
org.apache.ojb.broker.cache.ObjectCacheSoftImpl$SoftHashMap$SoftValue1
org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl$CacheEntry1
org.apache.ojb.broker.core.MtoNBroker$Key1
org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl1
org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl$PersistenceBrokerSyncHandle1
org.apache.ojb.broker.core.proxy.AbstractIndirectionHandler1
org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl2
org.apache.ojb.broker.locking.LockIsolationManager$ReadCommittedIsolation1
org.apache.ojb.broker.locking.LockIsolationManager$ReadUncommittedIsolation1
org.apache.ojb.broker.locking.LockIsolationManager$RepeatableReadIsolation1
org.apache.ojb.broker.locking.LockIsolationManager$SerializableIsolation1
org.apache.ojb.broker.locking.LockManagerCommonsImpl3
org.apache.ojb.broker.locking.LockManagerInMemoryImpl$LockEntry2
org.apache.ojb.broker.locking.LockManagerRemoteImpl1
org.apache.ojb.broker.locking.LockManagerServlet6
org.apache.ojb.broker.metadata.ClassDescriptor10
org.apache.ojb.broker.metadata.CollectionDescriptor3
org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler1
org.apache.ojb.broker.metadata.ConnectionPoolDescriptor1
org.apache.ojb.broker.metadata.ConnectionRepository1
org.apache.ojb.broker.metadata.FieldDescriptor1
org.apache.ojb.broker.metadata.JdbcTypesHelper2
org.apache.ojb.broker.metadata.JdbcTypesHelper$T_BigInt3
org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Integer4
org.apache.ojb.broker.metadata.JdbcTypesHelper$T_SmallInt4
org.apache.ojb.broker.metadata.JdbcTypesHelper$T_TinyInt4
org.apache.ojb.broker.metadata.MetadataManager3
org.apache.ojb.broker.metadata.ObjectReferenceDescriptor1
org.apache.ojb.broker.metadata.RepositoryPersistor$OJBErrorHandler1
org.apache.ojb.broker.metadata.RepositoryTags8
org.apache.ojb.broker.metadata.RepositoryXmlHandler1
org.apache.ojb.broker.metadata.SuperReferenceDescriptor1
org.apache.ojb.broker.metadata.SuperReferenceDescriptor$SuperReferenceField1
org.apache.ojb.broker.platforms.BlobWrapper18
org.apache.ojb.broker.platforms.ClobWrapper18
org.apache.ojb.broker.platforms.Oracle9iLobHandler1
org.apache.ojb.broker.platforms.PlatformInformixImpl1
org.apache.ojb.broker.platforms.PlatformOracle9iImpl29
org.apache.ojb.broker.platforms.PlatformOracleImpl2
org.apache.ojb.broker.platforms.PlatformSybaseASAImpl1
org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl6
org.apache.ojb.broker.query.OJBSearchFilter2
org.apache.ojb.broker.query.ReportQueryByCriteria6
org.apache.ojb.broker.query.SearchFilter1
org.apache.ojb.broker.query.UserAlias1
org.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory1
org.apache.ojb.broker.transaction.tm.JBossTransactionManagerFactory1
org.apache.ojb.broker.transaction.tm.JOnASTransactionManagerFactory1
org.apache.ojb.broker.transaction.tm.OrionTransactionManagerFactory1
org.apache.ojb.broker.transaction.tm.SunOneTransactionManagerFactory1
org.apache.ojb.broker.transaction.tm.WebSphereTransactionManagerFactory1
org.apache.ojb.broker.transaction.tm.WeblogicTransactionManagerFactory1
org.apache.ojb.broker.util.Base643
org.apache.ojb.broker.util.ExceptionHelper2
org.apache.ojb.broker.util.IdentityHashMap$IdentityKey1
org.apache.ojb.broker.util.JdbcTypesHelper1
org.apache.ojb.broker.util.ReferenceMap$DefaultMapEntry1
org.apache.ojb.broker.util.ReferenceMap$EntryIterator1
org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler3
org.apache.ojb.broker.util.collections.RemovalAwareCollection1
org.apache.ojb.broker.util.configuration.impl.OjbConfigurator1
org.apache.ojb.broker.util.dbhandling.DBHandlingTask1
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling9
org.apache.ojb.broker.util.interceptor.InterceptorFactory1
org.apache.ojb.broker.util.logging.CommonsLoggerImpl1
org.apache.ojb.broker.util.logging.Log4jLoggerImpl1
org.apache.ojb.broker.util.logging.LoggingConfiguration2
org.apache.ojb.broker.util.sequence.AbstractSequenceManager1
org.apache.ojb.broker.util.sequence.HighLowSequence1
org.apache.ojb.broker.util.sequence.SequenceManagerHelper7
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl1
org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl2
org.apache.ojb.broker.util.sequence.SequenceManagerNativeImpl1
org.apache.ojb.broker.util.sequence.SequenceManagerTransientImpl1
org.apache.ojb.odmg.DatabaseImpl1
org.apache.ojb.odmg.NamedRootsMap$NamedEntry4
org.apache.ojb.odmg.ObjectEnvelope1
org.apache.ojb.odmg.collections.DListEntry1
org.apache.ojb.odmg.collections.DMapEntry3
org.apache.ojb.odmg.locking.AbstractLockStrategy2
org.apache.ojb.odmg.locking.LockEntry2
org.apache.ojb.odmg.locking.LockManagerFactory1
org.apache.ojb.odmg.locking.RemoteLockMapImpl1
org.apache.ojb.odmg.oql.OQLLexer1
org.apache.ojb.odmg.oql.OQLParser2
org.apache.ojb.otm.core.ConcreteEditingContext$11
org.apache.ojb.otm.core.ConcreteEditingContext$22

org.apache.ojb.broker.Identity

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.Identity.hashCode() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.Identity.getPrimaryKeyValues() may expose internal representation by returning Identity.m_pkValuesMALICIOUS_CODEEI_EXPOSE_REPMedium
new org.apache.ojb.broker.Identity(Class, Class, Object[]) may expose internal representation by storing an externally mutable object into Identity.m_pkValuesMALICIOUS_CODEEI_EXPOSE_REP2Medium
new org.apache.ojb.broker.Identity(Class, Class, Object[], boolean) may expose internal representation by storing an externally mutable object into Identity.m_pkValuesMALICIOUS_CODEEI_EXPOSE_REP2Medium

org.apache.ojb.broker.PBKey

BugCategoryDetailsLinePriority
Class org.apache.ojb.broker.PBKey implements Cloneable but does not define or use clone methodBAD_PRACTICECN_IDIOMMedium

org.apache.ojb.broker.PBLifeCycleEvent

BugCategoryDetailsLinePriority
Class org.apache.ojb.broker.PBLifeCycleEvent defines non-transient non-serializable instance field eventTypeBAD_PRACTICESE_BAD_FIELDMedium

org.apache.ojb.broker.PBLifeCycleEvent$Type

BugCategoryDetailsLinePriority
Impossible cast from org.apache.ojb.broker.PBStateEvent to org.apache.ojb.broker.PBLifeCycleEvent$Type in org.apache.ojb.broker.PBLifeCycleEvent$Type.equals(Object)CORRECTNESSBC_IMPOSSIBLE_CASTHigh
org.apache.ojb.broker.PBLifeCycleEvent$Type.equals(Object) checks for operand being a PBStateEvent BAD_PRACTICEEQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THISHigh

org.apache.ojb.broker.PBStateEvent

BugCategoryDetailsLinePriority
Class org.apache.ojb.broker.PBStateEvent defines non-transient non-serializable instance field eventTypeBAD_PRACTICESE_BAD_FIELDMedium

org.apache.ojb.broker.PBStateEvent$Type

BugCategoryDetailsLinePriority
Impossible cast from org.apache.ojb.broker.PBStateEvent to org.apache.ojb.broker.PBStateEvent$Type in org.apache.ojb.broker.PBStateEvent$Type.equals(Object)CORRECTNESSBC_IMPOSSIBLE_CASTHigh
org.apache.ojb.broker.PBStateEvent$Type.equals(Object) checks for operand being a PBStateEvent BAD_PRACTICEEQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THISHigh

org.apache.ojb.broker.accesslayer.ChainingIterator

BugCategoryDetailsLinePriority
Unread field: org.apache.ojb.broker.accesslayer.ChainingIterator.disableLifeCycleEventsPERFORMANCEURF_UNREAD_FIELDMedium

org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl$ConPoolFactory

BugCategoryDetailsLinePriority
A prepared statement is generated from a nonconstant String at org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl$ConPoolFactory.validateConnection(Connection, String) SECURITYSQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRINGHigh

org.apache.ojb.broker.accesslayer.PkIterator

BugCategoryDetailsLinePriority
Class org.apache.ojb.broker.accesslayer.PkIterator defines non-transient non-serializable instance field internalEnumBAD_PRACTICESE_BAD_FIELDMedium

org.apache.ojb.broker.accesslayer.ReportQueryRsIterator

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.getObjectFromResultSet() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.accesslayer.RsIterator

BugCategoryDetailsLinePriority
Inconsistent synchronization of org.apache.ojb.broker.accesslayer.RsIterator.disableLifeCycleEvents; locked 50% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNCMedium

org.apache.ojb.broker.accesslayer.SqlBasedReportQueryRsIterator

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.accesslayer.SqlBasedReportQueryRsIterator.getObjectFromResultSet() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.accesslayer.StatementManager

BugCategoryDetailsLinePriority
instanceof will always return false in org.apache.ojb.broker.accesslayer.StatementManager.bindProcedure(PreparedStatement, ClassDescriptor, Object, ProcedureDescriptor), since a ClassCastException can't be a java.sql.SQLExceptionCORRECTNESSBC_IMPOSSIBLE_INSTANCEOFMedium

org.apache.ojb.broker.accesslayer.StatementsForClassImpl

BugCategoryDetailsLinePriority

org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.accesslayer.conversions.Int2IntegerFieldConversion

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.accesslayer.conversions.Int2IntegerFieldConversion.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion

BugCategoryDetailsLinePriority
Class org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion defines non-transient non-serializable instance field byteOutBAD_PRACTICESE_BAD_FIELDMedium
Class org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion defines non-transient non-serializable instance field gzipOutBAD_PRACTICESE_BAD_FIELDMedium
Class org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion defines non-transient non-serializable instance field objOutBAD_PRACTICESE_BAD_FIELDMedium
Class org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion defines non-transient non-serializable instance field uuOutBAD_PRACTICESE_BAD_FIELDMedium

org.apache.ojb.broker.accesslayer.sql.SqlMNStatement

BugCategoryDetailsLinePriority
new org.apache.ojb.broker.accesslayer.sql.SqlMNStatement(String, String[], Logger) may expose internal representation by storing an externally mutable object into SqlMNStatement.m_columnsMALICIOUS_CODEEI_EXPOSE_REP2Medium

org.apache.ojb.broker.accesslayer.sql.SqlProcedureStatement

BugCategoryDetailsLinePriority
Unread field: org.apache.ojb.broker.accesslayer.sql.SqlProcedureStatement.loggerPERFORMANCEURF_UNREAD_FIELDMedium

org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getColName(SqlQueryStatement$TableAlias, SqlHelper$PathInfo, boolean) uses the same code for two branchesSTYLEDB_DUPLICATE_BRANCHESMedium
Load of known null value in org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSQLClause(SelectionCriteria, StringBuffer)STYLENP_LOAD_OF_KNOWN_NULL_VALUEMedium

org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$Join

BugCategoryDetailsLinePriority
Equals method for org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$Join assumes the argument is of type SqlQueryStatement$JoinBAD_PRACTICEBC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTSMedium
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$Join.equals(Object) does not check for null argumentBAD_PRACTICENP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENTHigh

org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias

BugCategoryDetailsLinePriority
Equals method for org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias assumes the argument is of type SqlQueryStatement$TableAliasBAD_PRACTICEBC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTSMedium
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias.equals(Object) does not check for null argumentBAD_PRACTICENP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENTHigh

org.apache.ojb.broker.accesslayer.sql.SqlSelectMNStatement

BugCategoryDetailsLinePriority
new org.apache.ojb.broker.accesslayer.sql.SqlSelectMNStatement(String, String[], String[], Logger) may expose internal representation by storing an externally mutable object into SqlSelectMNStatement.m_selectColumnsMALICIOUS_CODEEI_EXPOSE_REP2Medium

org.apache.ojb.broker.ant.DBUtility

BugCategoryDetailsLinePriority
Possible null pointer dereference of ? in org.apache.ojb.broker.ant.DBUtility.exists(String, String, String, boolean) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTIONMedium
Possible null pointer dereference of ? in org.apache.ojb.broker.ant.DBUtility.exists(String, String, boolean) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTIONMedium
Possible null pointer dereference of ? in org.apache.ojb.broker.ant.DBUtility.existsUseWarnings(String, String, String, boolean) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTIONMedium
org.apache.ojb.broker.ant.DBUtility.exists(String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCEMedium
org.apache.ojb.broker.ant.DBUtility.exists(String, String, String, boolean) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCEMedium
org.apache.ojb.broker.ant.DBUtility.exists(String, String, boolean) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCEMedium
org.apache.ojb.broker.ant.DBUtility.existsUseWarnings(String, String, String, boolean) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCEMedium

org.apache.ojb.broker.ant.PreparedModel

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.ant.PreparedModel.extractIndirectionTables(DescriptorRepository, Database) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATORMedium

org.apache.ojb.broker.ant.RepositoryDataTask

BugCategoryDetailsLinePriority
org.apache.ojb.broker.ant.RepositoryDataTask.initOJB() may fail to close streamBAD_PRACTICEOS_OPEN_STREAMMedium
Exception is caught when Exception is not thrown in org.apache.ojb.broker.ant.RepositoryDataTask.initOJB()STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.ant.RepositoryVerifierHandler

BugCategoryDetailsLinePriority
Unread field: org.apache.ojb.broker.ant.RepositoryVerifierHandler.m_CurrentCLDPERFORMANCEURF_UNREAD_FIELDMedium
Unread field: org.apache.ojb.broker.ant.RepositoryVerifierHandler.m_CurrentCODPERFORMANCEURF_UNREAD_FIELDMedium
Unread field: org.apache.ojb.broker.ant.RepositoryVerifierHandler.m_CurrentORDPERFORMANCEURF_UNREAD_FIELDMedium
Unused field: org.apache.ojb.broker.ant.RepositoryVerifierHandler.m_repositoryPERFORMANCEUUF_UNUSED_FIELDMedium

org.apache.ojb.broker.ant.VerifyMappingsTask

BugCategoryDetailsLinePriority
org.apache.ojb.broker.ant.VerifyMappingsTask.getPersistentFieldClass() may fail to close streamBAD_PRACTICEOS_OPEN_STREAMMedium

org.apache.ojb.broker.ant.WriteDataSqlToFileCommand

BugCategoryDetailsLinePriority

org.apache.ojb.broker.ant.WriteDataToDatabaseCommand

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.ant.WriteDataToDatabaseCommand.setBatchSize(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.cache.ObjectCacheDefaultImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.cache.ObjectCacheDefaultImpl.buildKey(Identity) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.cache.ObjectCacheSoftImpl

BugCategoryDetailsLinePriority
Incorrect lazy initialization of static field org.apache.ojb.broker.cache.ObjectCacheSoftImpl.cache in new org.apache.ojb.broker.cache.ObjectCacheSoftImpl(PersistenceBroker, Properties)MT_CORRECTNESSLI_LAZY_INIT_STATICMedium

org.apache.ojb.broker.cache.ObjectCacheSoftImpl$SoftHashMap$SoftValue

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.cache.ObjectCacheSoftImpl$SoftHashMap$SoftValue be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl$CacheEntry

BugCategoryDetailsLinePriority
org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl$CacheEntry is Serializable but its superclass doesn't define an accessible void constructorBAD_PRACTICESE_NO_SUITABLE_CONSTRUCTORHigh

org.apache.ojb.broker.core.MtoNBroker$Key

BugCategoryDetailsLinePriority
Method new org.apache.ojb.broker.core.MtoNBroker$Key(ValueContainer[]) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl.getStatusFlagAsString(int)STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl$PersistenceBrokerSyncHandle

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl$PersistenceBrokerSyncHandle be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.core.proxy.AbstractIndirectionHandler

BugCategoryDetailsLinePriority
Inconsistent synchronization of org.apache.ojb.broker.core.proxy.AbstractIndirectionHandler._listeners; locked 42% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNCMedium

org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl

BugCategoryDetailsLinePriority
Inconsistent synchronization of org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl._data; locked 50% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNCMedium
org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDMedium

org.apache.ojb.broker.locking.LockIsolationManager$ReadCommittedIsolation

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.locking.LockIsolationManager$ReadCommittedIsolation be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.locking.LockIsolationManager$ReadUncommittedIsolation

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.locking.LockIsolationManager$ReadUncommittedIsolation be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.locking.LockIsolationManager$RepeatableReadIsolation

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.locking.LockIsolationManager$RepeatableReadIsolation be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.locking.LockIsolationManager$SerializableIsolation

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.locking.LockIsolationManager$SerializableIsolation be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.locking.LockManagerCommonsImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.locking.LockManagerCommonsImpl.readLock(Object, Object, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.locking.LockManagerCommonsImpl.upgradeLock(Object, Object, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.locking.LockManagerCommonsImpl.writeLock(Object, Object, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.locking.LockManagerInMemoryImpl$LockEntry

BugCategoryDetailsLinePriority
org.apache.ojb.broker.locking.LockManagerInMemoryImpl$LockEntry is serializable but also an inner class of a non-serializable classBAD_PRACTICESE_BAD_FIELD_INNER_CLASSMedium
Should org.apache.ojb.broker.locking.LockManagerInMemoryImpl$LockEntry be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.locking.LockManagerRemoteImpl

BugCategoryDetailsLinePriority
Write to static field org.apache.ojb.broker.locking.LockManagerRemoteImpl.lockservlet from instance method org.apache.ojb.broker.locking.LockManagerRemoteImpl.configure(Configuration)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODHigh

org.apache.ojb.broker.locking.LockManagerServlet

BugCategoryDetailsLinePriority
org.apache.ojb.broker.locking.LockManagerServlet.doPost(HttpServletRequest, HttpServletResponse) invokes inefficient Boolean constructor; use Boolean.valueOf(...) insteadPERFORMANCEDM_BOOLEAN_CTORMedium
Method org.apache.ojb.broker.locking.LockManagerServlet.doPost(HttpServletRequest, HttpServletResponse) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Incorrect lazy initialization and update of static field org.apache.ojb.broker.locking.LockManagerServlet.lockmanager in org.apache.ojb.broker.locking.LockManagerServlet.init(ServletConfig)MT_CORRECTNESSLI_LAZY_INIT_UPDATE_STATICMedium
org.apache.ojb.broker.locking.LockManagerServlet.lockmanager should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
Write to static field org.apache.ojb.broker.locking.LockManagerServlet.lastError from instance method org.apache.ojb.broker.locking.LockManagerServlet.init(ServletConfig)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODMedium
Write to static field org.apache.ojb.broker.locking.LockManagerServlet.numRequests from instance method org.apache.ojb.broker.locking.LockManagerServlet.init(ServletConfig)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODMedium

org.apache.ojb.broker.metadata.ClassDescriptor

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.ClassDescriptor.updateLockingValues(Object) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.ClassDescriptor.updateLockingValues(Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getAllRwFields() may expose internal representation by returning ClassDescriptor.m_RwFieldDescriptorsMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getFieldDescriptions() may expose internal representation by returning ClassDescriptor.m_FieldDescriptionsMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getFieldDescriptor(boolean) may expose internal representation by returning ClassDescriptor.m_FieldDescriptionsMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getLockingFields() may expose internal representation by returning ClassDescriptor.m_lockingFieldDescriptorsMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getNonPkFields() may expose internal representation by returning ClassDescriptor.m_nonPkFieldDescriptorsMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getNonPkRwFields() may expose internal representation by returning ClassDescriptor.m_RwNonPkFieldDescriptorsMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.ClassDescriptor.getPkFields() may expose internal representation by returning ClassDescriptor.m_PkFieldDescriptorsMALICIOUS_CODEEI_EXPOSE_REPMedium
Inconsistent synchronization of org.apache.ojb.broker.metadata.ClassDescriptor.proxyClass; locked 42% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNCMedium

org.apache.ojb.broker.metadata.CollectionDescriptor

BugCategoryDetailsLinePriority
org.apache.ojb.broker.metadata.CollectionDescriptor.getFksToItemClass() may expose internal representation by returning CollectionDescriptor.fksToItemClassAryMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.metadata.CollectionDescriptor.getFksToThisClass() may expose internal representation by returning CollectionDescriptor.fksToThisClassAryMALICIOUS_CODEEI_EXPOSE_REPMedium
Method org.apache.ojb.broker.metadata.CollectionDescriptor.toXML() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATIONMedium

org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler.startElement(String, String, String, Attributes)STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.metadata.ConnectionPoolDescriptor

BugCategoryDetailsLinePriority
org.apache.ojb.broker.metadata.ConnectionPoolDescriptor doesn't override java.util.Hashtable.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALSMedium

org.apache.ojb.broker.metadata.ConnectionRepository

BugCategoryDetailsLinePriority
Class org.apache.ojb.broker.metadata.ConnectionRepository defines non-transient non-serializable instance field utilsBAD_PRACTICESE_BAD_FIELDHigh

org.apache.ojb.broker.metadata.FieldDescriptor

BugCategoryDetailsLinePriority
org.apache.ojb.broker.metadata.FieldDescriptor defines clone() but doesn't implement CloneableBAD_PRACTICECN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLEMedium

org.apache.ojb.broker.metadata.JdbcTypesHelper

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.JdbcTypesHelper.setJdbcTypeByTypesIndex(int, JdbcType) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Exception is caught when Exception is not thrown in org.apache.ojb.broker.metadata.JdbcTypesHelper.getSqlTypeAsString(int)STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.metadata.JdbcTypesHelper$T_BigInt

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_BigInt.readValueFromResultSet(ResultSet, int) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_BigInt.readValueFromResultSet(ResultSet, String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_BigInt.readValueFromStatement(CallableStatement, int) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Integer

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Integer.readValueFromResultSet(ResultSet, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Integer.readValueFromResultSet(ResultSet, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Integer.readValueFromStatement(CallableStatement, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Integer.sequenceKeyConversion(Long) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.metadata.JdbcTypesHelper$T_SmallInt

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_SmallInt.readValueFromResultSet(ResultSet, int) invokes inefficient new Short(short) constructor; use Short.valueOf(short) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_SmallInt.readValueFromResultSet(ResultSet, String) invokes inefficient new Short(short) constructor; use Short.valueOf(short) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_SmallInt.readValueFromStatement(CallableStatement, int) invokes inefficient new Short(short) constructor; use Short.valueOf(short) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_SmallInt.sequenceKeyConversion(Long) invokes inefficient new Short(short) constructor; use Short.valueOf(short) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.metadata.JdbcTypesHelper$T_TinyInt

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_TinyInt.readValueFromResultSet(ResultSet, int) invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_TinyInt.readValueFromResultSet(ResultSet, String) invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_TinyInt.readValueFromStatement(CallableStatement, int) invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.JdbcTypesHelper$T_TinyInt.sequenceKeyConversion(Long) invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.metadata.MetadataManager

BugCategoryDetailsLinePriority
Write to static field org.apache.ojb.broker.metadata.MetadataManager.currentProfileKey from instance method org.apache.ojb.broker.metadata.MetadataManager.shutdown()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODHigh
Write to static field org.apache.ojb.broker.metadata.MetadataManager.singleton from instance method org.apache.ojb.broker.metadata.MetadataManager.shutdown()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODHigh
Write to static field org.apache.ojb.broker.metadata.MetadataManager.threadedRepository from instance method org.apache.ojb.broker.metadata.MetadataManager.shutdown()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODHigh

org.apache.ojb.broker.metadata.ObjectReferenceDescriptor

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.metadata.ObjectReferenceDescriptor.addForeignKeyField(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.metadata.RepositoryPersistor$OJBErrorHandler

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.metadata.RepositoryPersistor$OJBErrorHandler be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.metadata.RepositoryTags

BugCategoryDetailsLinePriority
Method new org.apache.ojb.broker.metadata.RepositoryTags() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.RepositoryTags.getAttribute(int, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.RepositoryTags.getClosingTagById(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.RepositoryTags.getOpeningTagById(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.RepositoryTags.getOpeningTagById(int, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.RepositoryTags.getOpeningTagNonClosingById(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.metadata.RepositoryTags.getTagById(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Possible null pointer dereference of ? in org.apache.ojb.broker.metadata.RepositoryTags.getIdByTag(String)CORRECTNESSNP_NULL_ON_SOME_PATHHigh

org.apache.ojb.broker.metadata.RepositoryXmlHandler

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(String, String, String, Attributes)STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.metadata.SuperReferenceDescriptor

BugCategoryDetailsLinePriority
org.apache.ojb.broker.metadata.SuperReferenceDescriptor is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDMedium

org.apache.ojb.broker.metadata.SuperReferenceDescriptor$SuperReferenceField

BugCategoryDetailsLinePriority
org.apache.ojb.broker.metadata.SuperReferenceDescriptor$SuperReferenceField is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDMedium

org.apache.ojb.broker.platforms.BlobWrapper

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.platforms.BlobWrapper.createTemporary(Connection, boolean, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.platforms.BlobWrapper.open(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.platforms.BlobWrapper.trim(long) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.platforms.BlobWrapper.close isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.createTemporary isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.durationCall isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.durationSession isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.freeTemporary isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.getBinaryOutputStream isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.getBinaryStream isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.getBufferSize isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.isOpen isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.modeReadOnly isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.modeReadWrite isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.open isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.BlobWrapper.trim isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
Exception is caught when Exception is not thrown in org.apache.ojb.broker.platforms.BlobWrapper.<static initializer>()STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.platforms.ClobWrapper

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.platforms.ClobWrapper.createTemporary(Connection, boolean, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.platforms.ClobWrapper.open(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.platforms.ClobWrapper.trim(long) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.platforms.ClobWrapper.close isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.createTemporary isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.durationCall isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.durationSession isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.freeTemporary isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.getBufferSize isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.getCharacterOutputStream isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.getCharacterStream isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.isOpen isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.modeReadOnly isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.modeReadWrite isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.open isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.broker.platforms.ClobWrapper.trim isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
Exception is caught when Exception is not thrown in org.apache.ojb.broker.platforms.ClobWrapper.<static initializer>()STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.platforms.Oracle9iLobHandler

BugCategoryDetailsLinePriority
org.apache.ojb.broker.platforms.Oracle9iLobHandler.logger isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.broker.platforms.PlatformInformixImpl

BugCategoryDetailsLinePriority

org.apache.ojb.broker.platforms.PlatformOracle9iImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.platforms.PlatformOracle9iImpl.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.platforms.PlatformOracle9iImpl.setObjectForStatement(PreparedStatement, int, Object, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.JBOSS_CONN_CLASS should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.METHOD_SET_BLOB should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.METHOD_SET_CLOB should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.METHOD_SET_IMPLICIT_CACHING_ENABLED should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.METHOD_SET_ROW_PREFETCH should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.METHOD_SET_STATEMENT_CACHE_SIZE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_BLOB_CLASS should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_BLOB_HANDLING_AVAILABLE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_CLOB_CLASS should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_CLOB_HANDLING_AVAILABLE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_CONN_CLASS should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_PS_CLASS should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_ROW_PREFETCH_AVAILABLE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.ORA_STATEMENT_CACHING_AVAILABLE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_BOOLEAN_TRUE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_ROW_PREFETCH_SIZE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_STATEMENT_BATCH_SIZE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_STATEMENT_CACHE_SIZE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_TYPE_BOOLEAN should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_TYPE_INTEGER should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_TYPE_INT_ORABLOB should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.PARAM_TYPE_INT_ORACLOB should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.UNWRAP_CONN_METHOD_NAMES should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.UNWRAP_CONN_PARAM_TYPES should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.UNWRAP_PS_METHOD_NAMES should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.UNWRAP_PS_PARAM_TYPES should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformOracle9iImpl.m_batchStatementsInProgress isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.broker.platforms.PlatformOracleImpl

BugCategoryDetailsLinePriority
org.apache.ojb.broker.platforms.PlatformOracleImpl.ORACLE_JDBC_TYPE_CURSOR should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
Exception is caught when Exception is not thrown in org.apache.ojb.broker.platforms.PlatformOracleImpl.changePreparedStatementResultSetType(PreparedStatement)STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.platforms.PlatformSybaseASAImpl

BugCategoryDetailsLinePriority

org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl.setObjectForStatement(PreparedStatement, int, Object, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl.PARAM_ROW_PREFETCH_SIZE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl.PARAM_STATEMENT_BATCH_SIZE should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl.PARAM_TYPE_INTEGER should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl.m_batchStatementsInProgress isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.broker.query.OJBSearchFilter

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.query.OJBSearchFilter.matchList(String, int[], int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.query.OJBSearchFilter.matchValue(String, int, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.query.ReportQueryByCriteria

BugCategoryDetailsLinePriority
org.apache.ojb.broker.query.ReportQueryByCriteria.getAttributes() may expose internal representation by returning ReportQueryByCriteria.m_attributesMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.query.ReportQueryByCriteria.getJdbcTypes() may expose internal representation by returning ReportQueryByCriteria.m_jdbcTypesMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.query.ReportQueryByCriteria.getJoinAttributes() may expose internal representation by returning ReportQueryByCriteria.m_joinAttributesMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.broker.query.ReportQueryByCriteria.setAttributes(String[]) may expose internal representation by storing an externally mutable object into ReportQueryByCriteria.m_attributesMALICIOUS_CODEEI_EXPOSE_REP2Medium
org.apache.ojb.broker.query.ReportQueryByCriteria.setJdbcTypes(int[]) may expose internal representation by storing an externally mutable object into ReportQueryByCriteria.m_jdbcTypesMALICIOUS_CODEEI_EXPOSE_REP2Medium
org.apache.ojb.broker.query.ReportQueryByCriteria.setJoinAttributes(String[]) may expose internal representation by storing an externally mutable object into ReportQueryByCriteria.m_joinAttributesMALICIOUS_CODEEI_EXPOSE_REP2Medium

org.apache.ojb.broker.query.SearchFilter

BugCategoryDetailsLinePriority
The method name org.apache.ojb.broker.query.SearchFilter.ConvertBinaryOperator(int) doesn't start with a lower case letterBAD_PRACTICENM_METHOD_NAMING_CONVENTIONMedium

org.apache.ojb.broker.query.UserAlias

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.query.UserAlias.initMapping(String, String) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATIONMedium

org.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory.TM_DEFAULT_METHOD_NAME isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.broker.transaction.tm.JBossTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.JBossTransactionManagerFactory.getLookupInfo() may expose internal representation by returning JBossTransactionManagerFactory.configMALICIOUS_CODEEI_EXPOSE_REPMedium

org.apache.ojb.broker.transaction.tm.JOnASTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.JOnASTransactionManagerFactory.getLookupInfo() may expose internal representation by returning JOnASTransactionManagerFactory.configMALICIOUS_CODEEI_EXPOSE_REPMedium

org.apache.ojb.broker.transaction.tm.OrionTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.OrionTransactionManagerFactory.getLookupInfo() may expose internal representation by returning OrionTransactionManagerFactory.configMALICIOUS_CODEEI_EXPOSE_REPMedium

org.apache.ojb.broker.transaction.tm.SunOneTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.SunOneTransactionManagerFactory.getLookupInfo() may expose internal representation by returning SunOneTransactionManagerFactory.configMALICIOUS_CODEEI_EXPOSE_REPMedium

org.apache.ojb.broker.transaction.tm.WebSphereTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.WebSphereTransactionManagerFactory.getLookupInfo() may expose internal representation by returning WebSphereTransactionManagerFactory.configMALICIOUS_CODEEI_EXPOSE_REPMedium

org.apache.ojb.broker.transaction.tm.WeblogicTransactionManagerFactory

BugCategoryDetailsLinePriority
org.apache.ojb.broker.transaction.tm.WeblogicTransactionManagerFactory.getLookupInfo() may expose internal representation by returning WeblogicTransactionManagerFactory.configMALICIOUS_CODEEI_EXPOSE_REPMedium

org.apache.ojb.broker.util.Base64

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.ojb.broker.util.Base64.main(String[])STYLEREC_CATCH_EXCEPTIONMedium
Private method org.apache.ojb.broker.util.Base64.encode3to4(byte[]) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHODMedium

org.apache.ojb.broker.util.ExceptionHelper

BugCategoryDetailsLinePriority
Invocation of toString on java.sql.BatchUpdateException.getUpdateCounts() in org.apache.ojb.broker.util.ExceptionHelper.generateException(String, SQLException, String, ClassDescriptor, ValueContainer[], Logger, Object)CORRECTNESSDMI_INVOKING_TOSTRING_ON_ARRAYHigh
? could be null and is guaranteed to be dereferenced in org.apache.ojb.broker.util.ExceptionHelper.generateException(String, SQLException, String, ClassDescriptor, ValueContainer[], Logger, Object)CORRECTNESSNP_GUARANTEED_DEREFMedium

org.apache.ojb.broker.util.IdentityHashMap$IdentityKey

BugCategoryDetailsLinePriority
org.apache.ojb.broker.util.IdentityHashMap$IdentityKey.equals(Object) is unusualSTYLEEQ_UNUSUALMedium

org.apache.ojb.broker.util.JdbcTypesHelper

BugCategoryDetailsLinePriority

org.apache.ojb.broker.util.ReferenceMap$DefaultMapEntry

BugCategoryDetailsLinePriority
Should org.apache.ojb.broker.util.ReferenceMap$DefaultMapEntry be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICMedium

org.apache.ojb.broker.util.ReferenceMap$EntryIterator

BugCategoryDetailsLinePriority
Unread field: org.apache.ojb.broker.util.ReferenceMap$EntryIterator.currentValuePERFORMANCEURF_UNREAD_FIELDMedium

org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium
Write to static field org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler.ADD_BATCH from instance method new org.apache.ojb.broker.util.batch.PreparedStatementInvocationHandler(BatchConnection, String, JdbcConnectionDescriptor)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODMedium

org.apache.ojb.broker.util.collections.RemovalAwareCollection

BugCategoryDetailsLinePriority
org.apache.ojb.broker.util.collections.RemovalAwareCollection doesn't override java.util.Vector.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALSMedium

org.apache.ojb.broker.util.configuration.impl.OjbConfigurator

BugCategoryDetailsLinePriority
Write to static field org.apache.ojb.broker.util.configuration.impl.OjbConfigurator.log from instance method org.apache.ojb.broker.util.configuration.impl.OjbConfigurator.setLogger(Logger)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODHigh

org.apache.ojb.broker.util.dbhandling.DBHandlingTask

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.ojb.broker.util.dbhandling.DBHandlingTask.createDBHandling()STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.util.dbhandling.TorqueDBHandling

BugCategoryDetailsLinePriority
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.createCreationScript() ignores exceptional return value of java.io.File.mkdir()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.createDB() ignores exceptional return value of java.io.File.mkdir()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.createInitScripts() ignores exceptional return value of java.io.File.createNewFile()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.createInitScripts() ignores exceptional return value of java.io.File.mkdir()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.deleteDir(File) ignores exceptional return value of java.io.File.delete()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.getWorkDir() ignores exceptional return value of java.io.File.delete()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.initDB() ignores exceptional return value of java.io.File.mkdir()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICEMedium
Method org.apache.ojb.broker.util.dbhandling.TorqueDBHandling.writeCompressedTexts(File, HashMap) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATORMedium

org.apache.ojb.broker.util.interceptor.InterceptorFactory

BugCategoryDetailsLinePriority
Incorrect lazy initialization and update of static field org.apache.ojb.broker.util.interceptor.InterceptorFactory.instance in org.apache.ojb.broker.util.interceptor.InterceptorFactory.getInstance()MT_CORRECTNESSLI_LAZY_INIT_UPDATE_STATICMedium

org.apache.ojb.broker.util.logging.CommonsLoggerImpl

BugCategoryDetailsLinePriority
org.apache.ojb.broker.util.logging.CommonsLoggerImpl is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDMedium

org.apache.ojb.broker.util.logging.Log4jLoggerImpl

BugCategoryDetailsLinePriority
org.apache.ojb.broker.util.logging.Log4jLoggerImpl is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDMedium

org.apache.ojb.broker.util.logging.LoggingConfiguration

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.ojb.broker.util.logging.LoggingConfiguration.load()STYLEREC_CATCH_EXCEPTIONMedium

org.apache.ojb.broker.util.sequence.AbstractSequenceManager

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.util.sequence.AbstractSequenceManager.getUniqueValue(FieldDescriptor) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.util.sequence.HighLowSequence

BugCategoryDetailsLinePriority
Method new org.apache.ojb.broker.util.sequence.HighLowSequence() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.util.sequence.SequenceManagerHelper

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqCacheValue(Properties) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqIncrementBy(Properties) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqMaxValue(Properties) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqMinValue(Properties) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
Method org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqStart(Properties) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqCycleValue(Properties) has Boolean return type and returns explicit nullBAD_PRACTICENP_BOOLEAN_RETURN_NULLMedium
org.apache.ojb.broker.util.sequence.SequenceManagerHelper.getSeqOrderValue(Properties) has Boolean return type and returns explicit nullBAD_PRACTICENP_BOOLEAN_RETURN_NULLMedium

org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl

BugCategoryDetailsLinePriority
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl.sequencesDBMap isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl.getUniqueLong(FieldDescriptor) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl.sequencesDBMap isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.broker.util.sequence.SequenceManagerNativeImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.util.sequence.SequenceManagerNativeImpl.afterStore(JdbcAccess, ClassDescriptor, Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.broker.util.sequence.SequenceManagerTransientImpl

BugCategoryDetailsLinePriority
Method org.apache.ojb.broker.util.sequence.SequenceManagerTransientImpl.getUniqueValue(FieldDescriptor) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.odmg.DatabaseImpl

BugCategoryDetailsLinePriority
Inconsistent synchronization of org.apache.ojb.odmg.DatabaseImpl.pbKey; locked 40% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNCMedium

org.apache.ojb.odmg.NamedRootsMap$NamedEntry

BugCategoryDetailsLinePriority
org.apache.ojb.odmg.NamedRootsMap$NamedEntry.getOid() may expose internal representation by returning NamedRootsMap$NamedEntry.oidMALICIOUS_CODEEI_EXPOSE_REPMedium
org.apache.ojb.odmg.NamedRootsMap$NamedEntry.setOid(byte[]) may expose internal representation by storing an externally mutable object into NamedRootsMap$NamedEntry.oidMALICIOUS_CODEEI_EXPOSE_REP2Medium
The field org.apache.ojb.odmg.NamedRootsMap$NamedEntry.object is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDMedium
The field org.apache.ojb.odmg.NamedRootsMap$NamedEntry.useIdentity is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDMedium

org.apache.ojb.odmg.ObjectEnvelope

BugCategoryDetailsLinePriority
Class org.apache.ojb.odmg.ObjectEnvelope defines non-transient non-serializable instance field bufferBAD_PRACTICESE_BAD_FIELDMedium

org.apache.ojb.odmg.collections.DListEntry

BugCategoryDetailsLinePriority
The field org.apache.ojb.odmg.collections.DListEntry.realSubject is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDMedium

org.apache.ojb.odmg.collections.DMapEntry

BugCategoryDetailsLinePriority
The field org.apache.ojb.odmg.collections.DMapEntry.keyRealSubject is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDMedium
The field org.apache.ojb.odmg.collections.DMapEntry.log is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDMedium
The field org.apache.ojb.odmg.collections.DMapEntry.valueRealSubject is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDMedium

org.apache.ojb.odmg.locking.AbstractLockStrategy

BugCategoryDetailsLinePriority
org.apache.ojb.odmg.locking.AbstractLockStrategy.DEFAULT_LOCK_TIMEOUT should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium
Write to static field org.apache.ojb.odmg.locking.AbstractLockStrategy.DEFAULT_LOCK_TIMEOUT from instance method new org.apache.ojb.odmg.locking.AbstractLockStrategy()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODMedium

org.apache.ojb.odmg.locking.LockEntry

BugCategoryDetailsLinePriority
org.apache.ojb.odmg.locking.LockEntry.LOCK_READ isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh
org.apache.ojb.odmg.locking.LockEntry.LOCK_WRITE isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINALHigh

org.apache.ojb.odmg.locking.LockManagerFactory

BugCategoryDetailsLinePriority
Load of known null value in org.apache.ojb.odmg.locking.LockManagerFactory.init()STYLENP_LOAD_OF_KNOWN_NULL_VALUEMedium

org.apache.ojb.odmg.locking.RemoteLockMapImpl

BugCategoryDetailsLinePriority
Write to static field org.apache.ojb.odmg.locking.RemoteLockMapImpl.lockservlet from instance method org.apache.ojb.odmg.locking.RemoteLockMapImpl.configure(Configuration)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHODHigh

org.apache.ojb.odmg.oql.OQLLexer

BugCategoryDetailsLinePriority
Method new org.apache.ojb.odmg.oql.OQLLexer(LexerSharedInputState) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTORMedium

org.apache.ojb.odmg.oql.OQLParser

BugCategoryDetailsLinePriority
Method org.apache.ojb.odmg.oql.OQLParser.literal() invokes inefficient new Character(char) constructor; use Character.valueOf(char) insteadPERFORMANCEDM_NUMBER_CTORMedium
org.apache.ojb.odmg.oql.OQLParser._tokenNames should be package protectedMALICIOUS_CODEMS_PKGPROTECTMedium

org.apache.ojb.otm.core.ConcreteEditingContext$1

BugCategoryDetailsLinePriority
org.apache.ojb.otm.core.ConcreteEditingContext$1.equals(Object) always returns falseCORRECTNESSEQ_ALWAYS_FALSEHigh

org.apache.ojb.otm.core.ConcreteEditingContext$2

BugCategoryDetailsLinePriority