The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory.equals(Object) fails for subtypes | BAD_PRACTICE | EQ_GETCLASS_AND_CLASS_CONSTANT | 221 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.config.AbstractBaseConfig.getBatchMode() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 78 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.config.BaseConfig.getBatchMode() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 326 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.config.ConfigLogger.logConfig(Config) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.config.HierarchicalConfigParser.parse(String, Map, boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 125 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.core.config.JAXBConfigImpl$ConfigNamespaceURIFilter be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 574 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field org.kuali.rice.kns.web.servlet.dwr.GlobalResourceDelegatingSpringCreator.APPLICATION_BEAN_FACTORY from instance method org.kuali.rice.core.config.RiceConfigurer.loadLifecycles() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 129 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.config.RiceConfigurerBase.loadSpringContext() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 146 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of org.kuali.rice.core.config.SimpleNodeSettingsStore.properties; locked 77% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 54 | Medium |
org.kuali.rice.core.config.SimpleNodeSettingsStore.load() ignores exceptional return value of java.io.File.createNewFile() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 67 | Medium |
org.kuali.rice.core.config.SimpleNodeSettingsStore.load() ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 65 | Medium |
Bug | Category | Details | Line | Priority |
---|
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to baseProperties in org.kuali.rice.core.config.spring.ConfigFactoryBean.getObject() | STYLE | DLS_DEAD_LOCAL_STORE | 40 | High |
org.kuali.rice.core.config.spring.ConfigFactoryBean.CONFIG_OVERRIDE_LOCATION isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.database.PreparedStatementCachingConnection doesn't override org.apache.commons.dbcp.DelegatingConnection.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 36 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.database.platform.MySQLDatabasePlatform.getNextValSQL(String, EntityManager) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 96 | Medium |
Method org.kuali.rice.core.database.platform.MySQLDatabasePlatform.getNextValSQL(String, PersistenceBroker) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 70 | Medium |
org.kuali.rice.core.database.platform.MySQLDatabasePlatform.getNextValSQL(String, PersistenceBroker) may fail to close PreparedStatement | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE | 62 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.database.platform.OracleDatabasePlatform.getNextValSQL(String, EntityManager) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 68 | Medium |
Method org.kuali.rice.core.database.platform.OracleDatabasePlatform.getNextValSQL(String, PersistenceBroker) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 83 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.kuali.rice.core.jdbc.PreparedObject() invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 29 | Medium |
org.kuali.rice.core.jdbc.PreparedObject.append(PreparedObject) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 59 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to bd in org.kuali.rice.core.jdbc.SqlBuilder.isValidNumber(String) | STYLE | DLS_DEAD_LOCAL_STORE | 289 | Medium |
Comparison of String parameter using == or != in org.kuali.rice.core.jdbc.SqlBuilder.addLogicalOperatorCriteria(String, String, Class, boolean, Criteria, String, boolean) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 213 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.jdbc.criteria.Criteria.getParameteres(List, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 388 | Medium |
Method org.kuali.rice.core.jdbc.criteria.Criteria.prepareParameters(Query, List, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 408 | Medium |
Method org.kuali.rice.core.jdbc.criteria.Criteria.buildWhere(Criteria) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 364 | Medium |
Method org.kuali.rice.core.jdbc.criteria.Criteria.in(String, List, Class) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 269 | Medium |
Method org.kuali.rice.core.jdbc.criteria.Criteria.notIn(String, List, Class) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 280 | Medium |
Method org.kuali.rice.core.jdbc.criteria.Criteria.toQuery(QueryByCriteria$QueryByCriteriaType) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 324 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.core.jdbc.criteria.Criteria$AndCriteria be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 424 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.core.jdbc.criteria.Criteria$OrCriteria be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 432 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.jpa.criteria.Criteria.prepareParameters(Query, List, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 255 | Medium |
Method org.kuali.rice.core.jpa.criteria.Criteria.buildWhere() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 238 | Medium |
Method org.kuali.rice.core.jpa.criteria.Criteria.in(String, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 147 | Medium |
Method org.kuali.rice.core.jpa.criteria.Criteria.notIn(String, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 158 | Medium |
Method org.kuali.rice.core.jpa.criteria.Criteria.toQuery(QueryByCriteria$QueryByCriteriaType) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 202 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.core.jpa.criteria.Criteria$AndCriteria be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 271 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.core.jpa.criteria.Criteria$OrCriteria be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 279 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.jpa.metadata.CollectionDescriptor.getCascade() may expose internal representation by returning CollectionDescriptor.cascade | MALICIOUS_CODE | EI_EXPOSE_REP | 84 | Medium |
org.kuali.rice.core.jpa.metadata.CollectionDescriptor.setCascade(CascadeType[]) may expose internal representation by storing an externally mutable object into CollectionDescriptor.cascade | MALICIOUS_CODE | EI_EXPOSE_REP2 | 88 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.core.jpa.metadata.EntityDescriptor defines non-transient non-serializable instance field sequence | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.jpa.metadata.FieldDescriptor defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 198 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.jpa.metadata.ObjectDescriptor.getCascade() may expose internal representation by returning ObjectDescriptor.cascade | MALICIOUS_CODE | EI_EXPOSE_REP | 68 | Medium |
org.kuali.rice.core.jpa.metadata.ObjectDescriptor.setCascade(CascadeType[]) may expose internal representation by storing an externally mutable object into ObjectDescriptor.cascade | MALICIOUS_CODE | EI_EXPOSE_REP2 | 72 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.jpa.spring.RiceLocalContainerEntityManagerFactoryBean.prepareJpaVendorAdapter(Config, String) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 77 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.kuali.rice.core.ojb.BaseOjbConfigurer(String[], String) may expose internal representation by storing an externally mutable object into BaseOjbConfigurer.jcdAliases | MALICIOUS_CODE | EI_EXPOSE_REP2 | 102 | Medium |
org.kuali.rice.core.ojb.BaseOjbConfigurer.setJcdAliases(String[]) may expose internal representation by storing an externally mutable object into BaseOjbConfigurer.jcdAliases | MALICIOUS_CODE | EI_EXPOSE_REP2 | 255 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.core.ojb.ContextClassLoaderSetProxy defines non-transient non-serializable instance field contextClassLoader | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.proxy.BaseInvocationHandler.proxyHashCode(Object) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 68 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.core.resourceloader.SimpleServiceLocator.getContents(String, boolean) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 45 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.core.resourceloader.SpringLoader.close(), since all org.springframework.context.support.ClassPathXmlApplicationContext are instances of org.springframework.context.ConfigurableApplicationContext | STYLE | BC_VACUOUS_INSTANCEOF | 170 | Medium |
Method org.kuali.rice.core.resourceloader.SpringLoader.getContents(String, boolean) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 195 | Medium |
Write to static field org.kuali.rice.core.resourceloader.SpringLoader.suppressedServices from instance method org.kuali.rice.core.resourceloader.SpringLoader.close() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 175 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.kuali.rice.core.resourceloader.SpringResourceLoader(QName, String[]) may expose internal representation by storing an externally mutable object into SpringResourceLoader.fileLocs | MALICIOUS_CODE | EI_EXPOSE_REP2 | 52 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Uninitialized read of desKey in new org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl() | CORRECTNESS | UR_UNINIT_READ | 50 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.service.impl.NoEncryptionEncryptionServiceImpl.decrypt(String) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 51 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.core.util.GRLServiceInjectionPostProcessor$AnnotatedMember be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 152 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method new org.kuali.rice.core.util.ImmutableProperties(Properties) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 37 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.util.KeyValue defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 56 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.util.OrmUtils.isJpaAnnotated(Class) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 131 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.web.jetty.JettyServer.createServer() ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 123 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.core.web.listener.StandaloneInitializeListener.shouldExecuteMessageFetcher() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 211 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to mode in org.kuali.rice.kcb.quartz.MessageDeletionListener.jobWasExecuted(JobExecutionContext, JobExecutionException) | STYLE | DLS_DEAD_LOCAL_STORE | 73 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Equals method for org.kuali.rice.ken.bo.NotificationChannel assumes the argument is of type NotificationChannel | BAD_PRACTICE | BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS | 250 | Medium |
org.kuali.rice.ken.bo.NotificationChannel defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 250 | High |
org.kuali.rice.ken.bo.NotificationChannel.equals(Object) does not check for null argument | BAD_PRACTICE | NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT | 250 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.kuali.rice.ken.service.impl.KENAPIServiceImpl.prefsService | PERFORMANCE | URF_UNREAD_FIELD | 51 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ken.service.impl.NotificationChannelServiceImpl.getAllNotificationChannels() invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 76 | Medium |
org.kuali.rice.ken.service.impl.NotificationChannelServiceImpl.getSubscribableChannels() invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 67 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of d in org.kuali.rice.ken.service.impl.NotificationMessageContentServiceImpl.parseSerializedNotificationXml(byte[]) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 567 | Medium |
Possible null pointer dereference of d2 in org.kuali.rice.ken.service.impl.NotificationMessageContentServiceImpl.parseSerializedNotificationXml(byte[]) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 577 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to firstMessageDelivery in org.kuali.rice.ken.service.impl.NotificationMessageDeliveryAutoRemovalServiceImpl.processWorkItems(Collection) | STYLE | DLS_DEAD_LOCAL_STORE | 70 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.ken.util.OjbCharBooleanConversion.javaToSql(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 33 | Medium |
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.ken.util.OjbCharBooleanConversion.sqlToJava(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 60 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Primitive value is boxed and then immediately unboxed in org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) | PERFORMANCE | BX_BOXING_IMMEDIATELY_UNBOXED | 396 | Medium |
org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 396 | Medium |
Method org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 412 | Medium |
Method org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 382 | Medium |
org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 379 | Medium |
org.kuali.rice.ken.util.Util.transformContent(Notification) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 199 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.ken.web.spring.AdministerNotificationRequestController.view(HttpServletRequest, HttpServletResponse, AdministerNotificationRequestController$AdministerNotificationRequestCommand) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 185 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ken.web.spring.ContentTypeController.displayContentTypeForm(HttpServletRequest, HttpServletResponse) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 121 | Medium |
Write to static field org.kuali.rice.ken.web.spring.ContentTypeController.view from instance method org.kuali.rice.ken.web.spring.ContentTypeController.addContentType(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 143 | High |
Write to static field org.kuali.rice.ken.web.spring.ContentTypeController.view from instance method org.kuali.rice.ken.web.spring.ContentTypeController.displayContentTypeForm(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 114 | High |
Write to static field org.kuali.rice.ken.web.spring.ContentTypeController.view from instance method org.kuali.rice.ken.web.spring.ContentTypeController.displayContentTypes(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 96 | High |
Write to static field org.kuali.rice.ken.web.spring.ContentTypeController.view from instance method org.kuali.rice.ken.web.spring.ContentTypeController.updateContentType(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 182 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field org.kuali.rice.ken.web.spring.UserPreferencesController.view from instance method org.kuali.rice.ken.web.spring.UserPreferencesController.displayActionListPreferences(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 87 | High |
Write to static field org.kuali.rice.ken.web.spring.UserPreferencesController.view from instance method org.kuali.rice.ken.web.spring.UserPreferencesController.displayUserPreferences(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 103 | High |
Write to static field org.kuali.rice.ken.web.spring.UserPreferencesController.view from instance method org.kuali.rice.ken.web.spring.UserPreferencesController.subscribeToChannel(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 135 | High |
Write to static field org.kuali.rice.ken.web.spring.UserPreferencesController.view from instance method org.kuali.rice.ken.web.spring.UserPreferencesController.unsubscribeFromChannel(HttpServletRequest, HttpServletResponse) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 176 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method new org.kuali.rice.kew.actionitem.ActionItem() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 103 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.actionitem.ActionItemComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 29 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.actionlist.ActionListFilter.getCreateDateFrom() may expose internal representation by returning ActionListFilter.createDateFrom | MALICIOUS_CODE | EI_EXPOSE_REP | 69 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.getCreateDateTo() may expose internal representation by returning ActionListFilter.createDateTo | MALICIOUS_CODE | EI_EXPOSE_REP | 149 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.getLastAssignedDateFrom() may expose internal representation by returning ActionListFilter.lastAssignedDateFrom | MALICIOUS_CODE | EI_EXPOSE_REP | 155 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.getLastAssignedDateTo() may expose internal representation by returning ActionListFilter.lastAssignedDateTo | MALICIOUS_CODE | EI_EXPOSE_REP | 135 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.setCreateDateFrom(Date) may expose internal representation by storing an externally mutable object into ActionListFilter.createDateFrom | MALICIOUS_CODE | EI_EXPOSE_REP2 | 72 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.setCreateDateTo(Date) may expose internal representation by storing an externally mutable object into ActionListFilter.createDateTo | MALICIOUS_CODE | EI_EXPOSE_REP2 | 152 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.setLastAssignedDateFrom(Date) may expose internal representation by storing an externally mutable object into ActionListFilter.lastAssignedDateFrom | MALICIOUS_CODE | EI_EXPOSE_REP2 | 158 | Medium |
org.kuali.rice.kew.actionlist.ActionListFilter.setLastAssignedDateTo(Date) may expose internal representation by storing an externally mutable object into ActionListFilter.lastAssignedDateTo | MALICIOUS_CODE | EI_EXPOSE_REP2 | 138 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to filterDescription in org.kuali.rice.kew.actionlist.dao.impl.ActionListDAOJpaImpl.addToFilterDescription(String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 436 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to filterDescription in org.kuali.rice.kew.actionlist.dao.impl.ActionListDAOOjbImpl.addToFilterDescription(String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 550 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of docType in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 262 | Medium |
Possible null pointer dereference of docType in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 262 | Medium |
Possible null pointer dereference of docType in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 262 | Medium |
Nullcheck of docType at line 266 of value previously dereferenced in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 262 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.actionlist.web.ActionListAction$ActionItemComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 782 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.actionlist.web.ActionListForm.getOutboxItems() may expose internal representation by returning ActionListForm.outboxItems | MALICIOUS_CODE | EI_EXPOSE_REP | 282 | Medium |
org.kuali.rice.kew.actionlist.web.ActionListForm.setOutboxItems(String[]) may expose internal representation by storing an externally mutable object into ActionListForm.outboxItems | MALICIOUS_CODE | EI_EXPOSE_REP2 | 286 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.actionrequest.ActionRequestFactory.addRoleResponsibilityRequest(List, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 388 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Questionable cast from Collection to abstract class java.util.List in org.kuali.rice.kew.actionrequest.service.impl.ActionRequestServiceImpl.findAllValidRequests(String, Collection, String) | STYLE | BC_BAD_CAST_TO_ABSTRACT_COLLECTION | 521 | High |
Dead store to matchedArs in org.kuali.rice.kew.actionrequest.service.impl.ActionRequestServiceImpl.findAllValidRequests(String, Collection, String) | STYLE | DLS_DEAD_LOCAL_STORE | 519 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of systemUserWorkgroup at line 181 of value previously dereferenced in org.kuali.rice.kew.actions.DisapproveAction.generateNotifications(RouteNodeInstance) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 181 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to actionTaken in org.kuali.rice.kew.actions.LogDocumentActionAction.recordAction() | STYLE | DLS_DEAD_LOCAL_STORE | 80 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.actions.SuperUserActionTakenEvent.AUTHORIZATION isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 48 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Impossible cast from org.kuali.rice.core.jpa.criteria.QueryByCriteria to java.util.List in org.kuali.rice.kew.actiontaken.dao.impl.ActionTakenDAOJpaImpl.findByRouteHeaderIdIgnoreCurrentInd(Long) | CORRECTNESS | BC_IMPOSSIBLE_CAST | 94 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Call to equals() comparing unrelated class and interface in org.kuali.rice.kew.attribute.XMLAttributeUtils.establishFieldLookup(Field, Node) | CORRECTNESS | EC_UNRELATED_CLASS_AND_INTERFACE | 44 | High |
Call to equals() comparing unrelated class and interface in org.kuali.rice.kew.attribute.XMLAttributeUtils.establishFieldLookup(Field, Node) | CORRECTNESS | EC_UNRELATED_CLASS_AND_INTERFACE | 41 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Impossible downcast of toArray() result to String[] in org.kuali.rice.kew.bo.lookup.DocSearchCriteriaDTOLookupableHelperServiceImpl.setRowsAfterClear(DocSearchCriteriaDTO, Map) | CORRECTNESS | BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY | 616 | High |
Possible null pointer dereference of criteria in org.kuali.rice.kew.bo.lookup.DocSearchCriteriaDTOLookupableHelperServiceImpl.performCustomAction(boolean) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 1062 | Medium |
Class org.kuali.rice.kew.bo.lookup.DocSearchCriteriaDTOLookupableHelperServiceImpl defines non-transient non-serializable instance field dateTimeService | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class org.kuali.rice.kew.bo.lookup.DocSearchCriteriaDTOLookupableHelperServiceImpl defines non-transient non-serializable instance field processor | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
org.kuali.rice.kew.docsearch.DocumentLookupCriteriaProcessorKEWAdapter stored into non-transient field DocSearchCriteriaDTOLookupableHelperServiceImpl.processor | BAD_PRACTICE | SE_BAD_FIELD_STORE | 475 | Medium |
org.kuali.rice.kew.docsearch.DocumentLookupCriteriaProcessorKEWAdapter stored into non-transient field DocSearchCriteriaDTOLookupableHelperServiceImpl.processor | BAD_PRACTICE | SE_BAD_FIELD_STORE | 554 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return false in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean), since a String can't be a Boolean | CORRECTNESS | BC_IMPOSSIBLE_INSTANCEOF | 201 | Medium |
instanceof will always return false in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean), since a String can't be a java.sql.Date | CORRECTNESS | BC_IMPOSSIBLE_INSTANCEOF | 207 | Medium |
instanceof will always return false in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean), since a String can't be a java.util.Collection | CORRECTNESS | BC_IMPOSSIBLE_INSTANCEOF | 213 | Medium |
Dead store to pkNames in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 136 | Medium |
Dead store to returnKeys in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 135 | Medium |
Dead store to user in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 137 | Medium |
Class org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl defines non-transient non-serializable instance field dateTimeService | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl defines non-transient non-serializable instance field processor | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
org.kuali.rice.kew.docsearch.DocumentLookupCriteriaProcessorKEWAdapter stored into non-transient field DocumentRouteHeaderValueLookupableHelperServiceImpl.processor | BAD_PRACTICE | SE_BAD_FIELD_STORE | 370 | Medium |
Method org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.constructCriteria(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 289 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.config.ThinClientResourceLoader.configureDefaultHttpClientParams(HttpParams) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 233 | Medium |
Method org.kuali.rice.kew.config.ThinClientResourceLoader.initializeHttpClientParams() makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 199 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kew.docsearch.DocSearchUtils.addSearchableAttributesToCriteria(DocSearchCriteriaDTO, List, String, boolean), since all org.kuali.rice.kns.web.ui.Field are instances of org.kuali.rice.kns.web.ui.Field | STYLE | BC_VACUOUS_INSTANCEOF | 519 | Medium |
instanceof will always return true in org.kuali.rice.kew.docsearch.DocSearchUtils.buildSearchableAttributesFromString(String, String), since all org.kuali.rice.kns.web.ui.Field are instances of org.kuali.rice.kns.web.ui.Field | STYLE | BC_VACUOUS_INSTANCEOF | 344 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kew.docsearch.DocumentLookupCriteriaBuilder.addSearchableAttributesToCriteria(DocSearchCriteriaDTO, Map), since all org.kuali.rice.kns.web.ui.Field are instances of org.kuali.rice.kns.web.ui.Field | STYLE | BC_VACUOUS_INSTANCEOF | 107 | Medium |
Method org.kuali.rice.kew.docsearch.DocumentLookupCriteriaBuilder.populateCriteria(Map) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 59 | Medium |
Method org.kuali.rice.kew.docsearch.DocumentLookupCriteriaBuilder.addSearchableAttributesToCriteria(DocSearchCriteriaDTO, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 139 | Medium |
Method org.kuali.rice.kew.docsearch.DocumentLookupCriteriaBuilder.populateCriteria(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to searchAttRows in org.kuali.rice.kew.docsearch.DocumentLookupCriteriaProcessorKEWAdapter.getRows(DocumentType, List, boolean, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 69 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.docsearch.SearchableAttributeDateTimeValue.isRangeValid(String, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 211 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.docsearch.SearchableAttributeFloatValue.isRangeValid(String, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 236 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.docsearch.SearchableAttributeLongValue.isRangeValid(String, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 229 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.docsearch.SearchableAttributeStringValue.isRangeValid(String, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 165 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Self assignment of field StandardDocumentSearchCriteriaProcessor.searchingUser in org.kuali.rice.kew.docsearch.StandardDocumentSearchCriteriaProcessor.setSearchingUser(String) | CORRECTNESS | SA_FIELD_SELF_ASSIGNMENT | 49 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to queryTableColumnName in org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.generateSearchableAttributeSql(SearchAttributeCriteriaComponent, String, int) | STYLE | DLS_DEAD_LOCAL_STORE | 648 | Medium |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.processRow(Statement, ResultSet) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 1085 | Medium |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.getDocRouteStatusSql(String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 1687 | Medium |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.getViewerSql(String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 1506 | Medium |
Write to static field org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.searchableAttributes from instance method new org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 103 | High |
Write to static field org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.searchableAttributes from instance method new org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator(List) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 111 | High |
Write to static field org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.criteria from instance method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.setCriteria(DocSearchCriteriaDTO) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 119 | High |
Write to static field org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.searchableAttributes from instance method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.setSearchableAttributes(List) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 127 | High |
Write to static field org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.searchingUser from instance method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.setSearchingUser(String) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 135 | High |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.combineAndFormatSearchableComponents(List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 459 | Medium |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.getSearchableAttributeSql(List, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 630 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor.addSearchableAttributeColumnsBasedOnFields(List, DocSearchCriteriaDTO, List), since all org.kuali.rice.kns.web.ui.Field are instances of org.kuali.rice.kns.web.ui.Field | STYLE | BC_VACUOUS_INSTANCEOF | 285 | Medium |
instanceof will always return true in org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor.getFields(DocSearchCriteriaDTO, List), since all org.kuali.rice.kns.web.ui.Field are instances of org.kuali.rice.kns.web.ui.Field | STYLE | BC_VACUOUS_INSTANCEOF | 382 | Medium |
instanceof will always return true in org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor.setUpCustomDisplayColumns(DocSearchCriteriaDTO, List), since all org.kuali.rice.kns.web.ui.Column are instances of org.kuali.rice.kns.web.ui.Column | STYLE | BC_VACUOUS_INSTANCEOF | 95 | Medium |
instanceof will always return true in org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor.setUpCustomDisplayColumns(DocSearchCriteriaDTO, List), since all org.kuali.rice.kns.web.ui.Field are instances of org.kuali.rice.kns.web.ui.Field | STYLE | BC_VACUOUS_INSTANCEOF | 98 | Medium |
Dead store to sortable in org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor.constructColumnUsingKey(String, String, Boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 741 | High |
org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor.addCustomColumn(List, Column) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 338 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.docsearch.StandardDocumentSearchResultProcessor$DisplayValues be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 417 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to docList in org.kuali.rice.kew.docsearch.dao.impl.DocumentSearchDAOOjbImpl.getList(DocumentSearchGenerator, DocSearchCriteriaDTO, Integer, String) | STYLE | DLS_DEAD_LOCAL_STORE | 68 | Medium |
Dead store to documentSecurityService in org.kuali.rice.kew.docsearch.dao.impl.DocumentSearchDAOOjbImpl.getList(DocumentSearchGenerator, DocSearchCriteriaDTO, Integer, String) | STYLE | DLS_DEAD_LOCAL_STORE | 67 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to pList in org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.validatePersonByName(String) | STYLE | DLS_DEAD_LOCAL_STORE | 380 | Medium |
Method org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.saveSearch(String, DocSearchCriteriaDTO) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 542 | Medium |
Private method org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.validateNetworkId(List) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 352 | Medium |
Private method org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.validateNumber(List) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 402 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.docsearch.web.SearchAttributeFormContainer.getValues() may expose internal representation by returning SearchAttributeFormContainer.values | MALICIOUS_CODE | EI_EXPOSE_REP | 100 | Medium |
new org.kuali.rice.kew.docsearch.web.SearchAttributeFormContainer(String, String[]) may expose internal representation by storing an externally mutable object into SearchAttributeFormContainer.values | MALICIOUS_CODE | EI_EXPOSE_REP2 | 45 | Medium |
org.kuali.rice.kew.docsearch.web.SearchAttributeFormContainer.setValues(String[]) may expose internal representation by storing an externally mutable object into SearchAttributeFormContainer.values | MALICIOUS_CODE | EI_EXPOSE_REP2 | 104 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute.getBooleanValue(NamedNodeMap, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 558 | Medium |
org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute.getBooleanWithPotentialOverrides(ArrayList, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 550 | Medium |
Method org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute.getSearchContent(DocumentSearchContext) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 88 | Medium |
Private method org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute.getBooleanWithPotentialOverrides(String, NamedNodeMap, NamedNodeMap, NamedNodeMap) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 533 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.doctype.DocumentTypeAttribute defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 153 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.doctype.DocumentTypeLookupableHelperServiceImpl.loadDocumentTypeForSearch(Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 106 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.doctype.DocumentTypePolicy.copy(boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 155 | Medium |
Method org.kuali.rice.kew.doctype.DocumentTypePolicy.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 148 | Medium |
org.kuali.rice.kew.doctype.DocumentTypePolicy.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 151 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in new org.kuali.rice.kew.doctype.DocumentTypeSecurity(String, String) | STYLE | REC_CATCH_EXCEPTION | 225 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method new org.kuali.rice.kew.doctype.bo.DocumentType() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 116 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to docType in org.kuali.rice.kew.doctype.dao.impl.DocumentTypeDAOJpaImpl.delete(DocumentType) | STYLE | DLS_DEAD_LOCAL_STORE | 62 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.doctype.dao.impl.DocumentTypeDAOOjbImpl.findDocumentTypeIdByDocumentId(Long) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 270 | Medium |
Method org.kuali.rice.kew.doctype.dao.impl.DocumentTypeDAOOjbImpl.getChildDocumentTypeIds(Long) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 89 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.doctype.service.impl.DocumentTypeServiceImpl.versionAndSave(DocumentType) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 296 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to extensions in org.kuali.rice.kew.document.RoutingRuleMaintainableBusRule.setRuleAttributeErrors(RuleBaseValues) | STYLE | DLS_DEAD_LOCAL_STORE | 243 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationAction.getDocument(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 129 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationForm.getActionItemOp(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 173 | Medium |
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationForm.getActionRequestOp(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 145 | Medium |
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationForm.getActionTakenOp(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 152 | Medium |
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationForm.getBranchOp(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 166 | Medium |
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationForm.getNodeStateDeleteOp(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 180 | Medium |
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationForm.getRouteNodeInstanceOp(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 159 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Impossible downcast of toArray() result to String[] in org.kuali.rice.kew.dto.DTOConverter.convertDocumentSearchCriteriaDTO(DocumentSearchCriteriaDTO) | CORRECTNESS | BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY | 1319 | High |
Method org.kuali.rice.kew.dto.DTOConverter.createDocumentContentSection(Document, Element, WorkflowAttributeDefinitionDTO[], String, String, DocumentType) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 399 | Medium |
Method org.kuali.rice.kew.dto.DTOConverter.convertDocumentSearchCriteriaDTO(DocumentSearchCriteriaDTO) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1314 | Medium |
Method org.kuali.rice.kew.dto.DTOConverter.convertRouteHeader(DocumentRouteHeaderValue, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 136 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of activeNodeInstances in org.kuali.rice.kew.edl.EDLDatabasePostProcessor.getNodeNames(Long) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 120 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.edl.EDLXmlUtils.addErrorsAndMessagesToDocument(Document, List, List, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 236 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.edl.UserAction.ANNOTATABLE_ACTIONS is a mutable array | MALICIOUS_CODE | MS_MUTABLE_ARRAY | 78 | High |
org.kuali.rice.kew.edl.UserAction.EDITABLE_ACTIONS is a mutable array | MALICIOUS_CODE | MS_MUTABLE_ARRAY | 88 | High |
org.kuali.rice.kew.edl.UserAction.LOAD_ACTIONS should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 58 | Medium |
org.kuali.rice.kew.edl.UserAction.REPLACE_VERSION_ACTIONS should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 63 | Medium |
org.kuali.rice.kew.edl.UserAction.VALIDATABLE_ACTIONS should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 67 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.edl.components.NoteConfigComponent.retrieveNoteList(NoteConfigComponent$NoteForm, EDLContext) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 189 | Medium |
Method org.kuali.rice.kew.edl.components.NoteConfigComponent.editNote(NoteConfigComponent$NoteForm) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 204 | Medium |
Method org.kuali.rice.kew.edl.components.NoteConfigComponent.retrieveNoteList(NoteConfigComponent$NoteForm, EDLContext) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 188 | Medium |
Method org.kuali.rice.kew.edl.components.NoteConfigComponent.retrieveNoteList(NoteConfigComponent$NoteForm, EDLContext) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 165 | Medium |
note could be null and is guaranteed to be dereferenced in org.kuali.rice.kew.edl.components.NoteConfigComponent.getAuthorData(Note) | CORRECTNESS | NP_GUARANTEED_DEREF | 850 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method new org.kuali.rice.kew.edl.components.NoteConfigComponent$NoteForm(RequestParser) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 625 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.edl.components.SelectControlEDLComponent.updateDOM(Document, Element, EDLContext) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 64 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused field: org.kuali.rice.kew.edl.components.ValidationComponent.edlContext | PERFORMANCE | UUF_UNUSED_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.edl.components.VersioningPreprocessor.findCurrentVersion(Document) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 82 | Medium |
Method org.kuali.rice.kew.edl.components.VersioningPreprocessor.updateDOM(Document, Element, EDLContext) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 56 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to requestParser in org.kuali.rice.kew.edl.components.WorkflowDocumentActions.doPostProcessWork(Document, EDLContext) | STYLE | DLS_DEAD_LOCAL_STORE | 92 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.engine.BlanketApproveEngine$ProcessEntry be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 289 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.CompatUtils.getLevelForNode(DocumentType, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 45 | Medium |
Method org.kuali.rice.kew.engine.CompatUtils.getLevelForNode(RouteNode, String, Integer) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 64 | Medium |
Method org.kuali.rice.kew.engine.CompatUtils.getNodeForLevel(DocumentType, Integer) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 73 | Medium |
Method org.kuali.rice.kew.engine.CompatUtils.getNodeForLevel(RouteNode, Integer, Integer) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 95 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.EngineState.getNextSimulationId() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 74 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to processContext in org.kuali.rice.kew.engine.StandardWorkflowEngine.process(Long, Long) | STYLE | DLS_DEAD_LOCAL_STORE | 118 | Medium |
Method org.kuali.rice.kew.engine.StandardWorkflowEngine.handleBackwardCompatibility(RouteContext, RouteNodeInstance) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 326 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to routeHeaderId in org.kuali.rice.kew.engine.node.FYIByNetworkId.process(RouteContext, RouteHelper) | STYLE | DLS_DEAD_LOCAL_STORE | 52 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.node.IteratedRequestActivationNode.saveActionRequest(RouteContext, ActionRequestValue) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 268 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.engine.node.KRAMetaRuleNode$FinalApproverContext be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 218 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.node.NodeJotter.orchestrateOutput(RouteNodeInstance, NodeType, NodeJotter$SplitJoinContext, int) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 72 | Medium |
Method org.kuali.rice.kew.engine.node.NodeJotter.outputNodeInstanceToLog(RouteNodeInstance, NodeType, int) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 93 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.engine.node.NodeType$ExtensionDepthComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 180 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.node.RequestActivationNode.saveActionRequest(RouteContext, ActionRequestValue) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 168 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.engine.node.RequestsNode$FinalApproverContext be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 250 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.engine.node.RoleNode$RoleRequestSorter implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 218 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.engine.node.RouteNodeUtils$RouteNodeSorter implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 154 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to documentType in org.kuali.rice.kew.engine.node.hierarchyrouting.HierarchyRoutingNode.transitioningOutOf(RouteContext, RouteHelper) | STYLE | DLS_DEAD_LOCAL_STORE | 158 | Medium |
Possible null pointer dereference of result in org.kuali.rice.kew.engine.node.hierarchyrouting.HierarchyRoutingNode.transitioningOutOf(RouteContext, RouteHelper) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 194 | Medium |
Nullcheck of requestNodeStop at line 242 of value previously dereferenced in org.kuali.rice.kew.engine.node.hierarchyrouting.HierarchyRoutingNode.canTransitionFrom(HierarchyProvider, HierarchyProvider$Stop, Collection, RouteHelper) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 242 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.node.service.impl.RouteNodeServiceImpl.searchNodeGraphBackward(NodeGraphContext, NodeMatcher) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 337 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.engine.node.service.impl.RouteNodeServiceImpl$NodeInstanceIdSorter implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 420 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.engine.node.service.impl.RouteNodeServiceImpl$RouteNodeSorter implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 412 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to processContext in org.kuali.rice.kew.engine.simulation.SimulationEngine.process(Long, Long) | STYLE | DLS_DEAD_LOCAL_STORE | 105 | Medium |
Method org.kuali.rice.kew.engine.simulation.SimulationEngine.createSimulationDocument(Long, SimulationCriteria, RouteContext) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 290 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to errors in org.kuali.rice.kew.help.service.impl.HelpServiceImpl.validateHelpEntry(HelpEntry) | STYLE | DLS_DEAD_LOCAL_STORE | 107 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kew.help.web.HelpForm defines non-transient non-serializable instance field helpEntry | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.mail.service.impl.ActionListEmailServiceImpl.getActionListItemsStat(Collection) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 529 | Medium |
Method org.kuali.rice.kew.mail.service.impl.ActionListEmailServiceImpl.getDailyWeeklyMessageBody(Collection) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 508 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.mail.service.impl.HardCodedActionListEmailServiceImpl.getActionListItemsStat(Collection) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 314 | Medium |
Method org.kuali.rice.kew.mail.service.impl.HardCodedActionListEmailServiceImpl.getDailyWeeklyMessageBody(Collection) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 293 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.mail.service.impl.HardCodedEmailContentServiceImpl.getActionListItemsStat(Collection) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 225 | Medium |
Method org.kuali.rice.kew.mail.service.impl.HardCodedEmailContentServiceImpl.getDailyWeeklyMessageBody(Collection) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 204 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.messaging.exceptionhandling.ExceptionRoutingServiceImpl.generateExceptionGroupRequests(RouteContext) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 153 | Medium |
Method call in org.kuali.rice.kew.messaging.exceptionhandling.ExceptionRoutingServiceImpl.placeInExceptionRouting(String, PersistedMessage, Long) passes null for nonnull parameter of placeInExceptionRouting(String, RouteNodeInstance, PersistedMessage, RouteContext, DocumentRouteHeaderValue, boolean) | CORRECTNESS | NP_NULL_PARAM_DEREF | 65 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.notes.service.impl.AttachmentServiceImpl.createStorageDirIfNecessary() ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 87 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in org.kuali.rice.kew.notes.web.AttachmentServlet.doPost(HttpServletRequest, HttpServletResponse) | STYLE | REC_CATCH_EXCEPTION | 122 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.notes.web.NoteAction.initForm(HttpServletRequest, ActionForm) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 207 | Medium |
org.kuali.rice.kew.notes.web.NoteAction.retrieveNoteList(HttpServletRequest, NoteForm) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 236 | Medium |
Method org.kuali.rice.kew.notes.web.NoteAction.edit(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 111 | Medium |
Method org.kuali.rice.kew.notes.web.NoteAction.retrieveNoteList(HttpServletRequest, NoteForm) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 253 | Medium |
Method org.kuali.rice.kew.notes.web.NoteAction.retrieveNoteList(HttpServletRequest, NoteForm) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 230 | Medium |
note could be null and is guaranteed to be dereferenced in org.kuali.rice.kew.notes.web.NoteAction.getAuthorData(Note) | CORRECTNESS | NP_GUARANTEED_DEREF | 272 | Medium |
Nullcheck of routeHeader at line 218 of value previously dereferenced in org.kuali.rice.kew.notes.web.NoteAction.retrieveNoteList(HttpServletRequest, NoteForm) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 218 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.plugin.ModificationTracker.isModified(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 68 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.plugin.ModificationTracker$Node.equals(Object) invokes java.net.URL.equals(Object), which blocks to do domain name resolution | PERFORMANCE | DMI_BLOCKING_METHODS_ON_URL | 98 | High |
org.kuali.rice.kew.plugin.ModificationTracker$Node.hashCode() invokes java.net.URL.hashCode(), which blocks to do domain name resolution | PERFORMANCE | DMI_BLOCKING_METHODS_ON_URL | 103 | High |
Should org.kuali.rice.kew.plugin.ModificationTracker$Node be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 79 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.plugin.PluginConfig.getObjects() makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 104 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of org.kuali.rice.kew.plugin.PluginEnvironment.supressStartupFailure; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 146 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.plugin.PluginNameComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 26 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.plugin.ServerPluginRegistry.loadPlugins(File) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 140 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to stagingDirectory in org.kuali.rice.kew.preferences.service.impl.PreferencesServiceImpl.getPreferences(String) | STYLE | DLS_DEAD_LOCAL_STORE | 98 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.quicklinks.ActionListStats defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 62 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.quicklinks.dao.impl.QuickLinksDAOJpaImpl.getInitiatedDocumentTypesList(String) invokes substring(0), which returns the original value | STYLE | DMI_USELESS_SUBSTRING | 94 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.quicklinks.dao.impl.QuickLinksDAOOjbImpl$2.doInPersistenceBroker(PersistenceBroker) invokes substring(0), which returns the original value | STYLE | DMI_USELESS_SUBSTRING | 149 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in org.kuali.rice.kew.removereplace.service.impl.RemoveReplaceDocumentServiceImpl.attachDocumentContent(RemoveReplaceDocument, WorkflowDocument) | STYLE | REC_CATCH_EXCEPTION | 143 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.removereplace.web.RemoveReplaceAction$ResponsibilityEvaluation be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 384 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.resourceloader.CoreResourceLoader.useRemoteEmailServices() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 107 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to actionRequests in org.kuali.rice.kew.role.RoleRouteModule.findActionRequests(RouteContext) | STYLE | DLS_DEAD_LOCAL_STORE | 70 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.role.XPathQualifierResolver$ResolverConfig be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 230 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method new org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 133 | Medium |
Comparison of String parameter using == or != in org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue.setRouteStatus(String, boolean) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 659 | High |
Method org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue.getCurrentRouteLevelName() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 270 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kew.routeheader.PartialAttributeContent defines non-transient non-serializable instance field attributeContent | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class org.kuali.rice.kew.routeheader.PartialAttributeContent defines non-transient non-serializable instance field document | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOJpaImpl.findPendingByResponsibilityIds(Set) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 201 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findByDocTypeAndAppId(String, String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 380 | Medium |
Method org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findPendingByResponsibilityIds(Set) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 212 | Medium |
org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findByDocTypeAndAppId(String, String) may fail to close PreparedStatement | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE | 374 | Medium |
Method org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findPendingByResponsibilityIds(Set) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 199 | Medium |
Bug | Category | Details | Line | Priority |
---|
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to principal in org.kuali.rice.kew.routeheader.service.impl.WorkflowDocumentServiceImpl.takeMassActions(String, List) | STYLE | DLS_DEAD_LOCAL_STORE | 451 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to actionRequests in org.kuali.rice.kew.rule.FlexRM.getActionRequests(DocumentRouteHeaderValue, RouteNode, RouteNodeInstance, String) | STYLE | DLS_DEAD_LOCAL_STORE | 203 | Medium |
Private method org.kuali.rice.kew.rule.FlexRM.makeActionRequests(ActionRequestFactory, RouteContext, RuleBaseValues, DocumentRouteHeaderValue, ActionRequestValue, RuleDelegation) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 241 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.GroupRuleResponsibility doesn't override RuleResponsibility.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 26 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.KRAMetaRuleEngine.getStatements() may expose internal representation by returning KRAMetaRuleEngine.statements | MALICIOUS_CODE | EI_EXPOSE_REP | 70 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.MyRules2.addRule(WebRuleBaseValues) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 43 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.PersonRuleResponsibility doesn't override RuleResponsibility.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 27 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.RemoveReplaceRuleRoutingAttribute.filterNonMatchingRules(RouteContext, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 93 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.RemoveReplaceRuleRoutingAttribute$RuleDocumentType.equals(Object) checks for operand being a String | BAD_PRACTICE | EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS | 142 | High |
Should org.kuali.rice.kew.rule.RemoveReplaceRuleRoutingAttribute$RuleDocumentType be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 121 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.RuleBaseValues.getRuleExtensionValueLabels() uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 198 | Medium |
org.kuali.rice.kew.rule.RuleBaseValues.copy(boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 442 | Medium |
Method org.kuali.rice.kew.rule.RuleBaseValues.addRuleResponsibility(RuleResponsibility) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 282 | Medium |
Method org.kuali.rice.kew.rule.RuleBaseValues.copy(boolean) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 489 | Medium |
Method org.kuali.rice.kew.rule.RuleBaseValues.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 436 | Medium |
org.kuali.rice.kew.rule.RuleBaseValues.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 451 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.RuleDelegation.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 75 | Medium |
org.kuali.rice.kew.rule.RuleDelegation.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 80 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.RuleExpressionDef defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 99 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.RuleExtension.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 168 | Medium |
org.kuali.rice.kew.rule.RuleExtension defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 191 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.RuleExtensionValue.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 126 | Medium |
org.kuali.rice.kew.rule.RuleExtensionValue.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 123 | Medium |
org.kuali.rice.kew.rule.RuleExtensionValue defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 136 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of ruleRoutingElement at line 174 of value previously dereferenced in org.kuali.rice.kew.rule.RuleRoutingAttribute.parseDocContent(DocumentContent) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 174 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.RuleTemplateOption.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 90 | Medium |
org.kuali.rice.kew.rule.RuleTemplateOption.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 84 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to documentContent in org.kuali.rice.kew.rule.TemplateRuleSelector.selectRules(RouteContext, DocumentRouteHeaderValue, RouteNodeInstance, String, Timestamp) | STYLE | DLS_DEAD_LOCAL_STORE | 92 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.bo.RuleAttribute.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 154 | Medium |
org.kuali.rice.kew.rule.bo.RuleAttribute.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 142 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to attributeLabel in org.kuali.rice.kew.rule.bo.RuleBaseValuesLookupableHelperServiceImpl.validateSearchParameters(Map) | STYLE | DLS_DEAD_LOCAL_STORE | 455 | Medium |
Method org.kuali.rice.kew.rule.bo.RuleBaseValuesLookupableHelperServiceImpl.getSearchResults(Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 229 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to attributeLabel in org.kuali.rice.kew.rule.bo.RuleDelegationLookupableHelperServiceImpl.validateSearchParameters(Map) | STYLE | DLS_DEAD_LOCAL_STORE | 419 | Medium |
Method org.kuali.rice.kew.rule.bo.RuleDelegationLookupableHelperServiceImpl.getSearchResults(Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 215 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.bo.RuleTemplate.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 272 | Medium |
org.kuali.rice.kew.rule.bo.RuleTemplate.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 266 | Medium |
org.kuali.rice.kew.rule.bo.RuleTemplate.DEFAULT_OPTION_KEYS should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 55 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.bo.RuleTemplateAttribute.copy(boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 266 | Medium |
Method org.kuali.rice.kew.rule.bo.RuleTemplateAttribute.copy(boolean) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 263 | Medium |
Method org.kuali.rice.kew.rule.bo.RuleTemplateAttribute.copy(boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 275 | Medium |
org.kuali.rice.kew.rule.bo.RuleTemplateAttribute.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 260 | Medium |
org.kuali.rice.kew.rule.bo.RuleTemplateAttribute defines compareTo(RuleTemplateAttribute) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 90 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.dao.impl.RuleDAOJpaImpl.fetchAllRules(boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 121 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.dao.impl.RuleDAOOjbImpl.fetchAllRules(boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 118 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.dao.impl.RuleDAOOjbImpl$1.doInPersistenceBroker(PersistenceBroker) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 474 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Load of known null value in org.kuali.rice.kew.rule.service.impl.RuleDelegationServiceImpl.findByResponsibilityId(Long, boolean) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 194 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.service.impl.RuleServiceImpl$RuleDelegationSorter.compare(Object, Object) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 1274 | Medium |
Should org.kuali.rice.kew.rule.service.impl.RuleServiceImpl$RuleDelegationSorter be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 1269 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.web.RoutingReportAction.calculateRoute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 147 | Medium |
Method org.kuali.rice.kew.rule.web.RoutingReportAction.calculateRoute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 145 | Medium |
Method org.kuali.rice.kew.rule.web.RoutingReportAction.populateActionRequestsWithRouteLevelInformationAndIterateMagicCounter(RouteNode, List, long) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 294 | Medium |
Method org.kuali.rice.kew.rule.web.RoutingReportAction.populateActionRequestsWithRouteLevelInformationAndIterateMagicCounter(RouteNode, List, long) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 296 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.rule.web.RoutingReportAction$RouteReportRuleTemplateContainer be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 276 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.web.WebRuleBaseValues.loadFields() uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 108 | Medium |
Method org.kuali.rice.kew.rule.web.WebRuleBaseValues.loadFieldsWithDefaultValues() uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 214 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to o in org.kuali.rice.kew.rule.web.WebRuleResponsibility.injectWebMembers() | STYLE | DLS_DEAD_LOCAL_STORE | 146 | Medium |
org.kuali.rice.kew.rule.web.WebRuleResponsibility doesn't override org.kuali.rice.kew.rule.RuleResponsibility.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 51 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.web.WebRuleResponsibility$DelegationRulesProxy is serializable and an inner class | BAD_PRACTICE | SE_INNER_CLASS | 455 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.rule.web.WebRuleUtils.transformFieldConversions(List, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 309 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of map at line 507 of value previously dereferenced in org.kuali.rice.kew.rule.xmlrouting.StandardGenericXMLRuleAttribute.getDocContent() | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 507 | Medium |
Method org.kuali.rice.kew.rule.xmlrouting.StandardGenericXMLRuleAttribute.getDocContent() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 498 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.service.impl.KEWModuleService.getExternalizableBusinessObjectInquiryUrl(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 172 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to document in org.kuali.rice.kew.service.impl.WorkflowDocumentActionsWebServiceImpl.superUserActionRequestApproveAction(String, Long, Long, String, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 378 | Medium |
org.kuali.rice.kew.service.impl.WorkflowDocumentActionsWebServiceImpl.adHocRouteDocumentToGroup(String, RouteHeaderDTO, String, String, String, String, String, boolean, String) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 154 | Medium |
org.kuali.rice.kew.service.impl.WorkflowDocumentActionsWebServiceImpl.adHocRouteDocumentToPrincipal(String, RouteHeaderDTO, String, String, String, String, String, boolean, String) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 143 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to principalId in org.kuali.rice.kew.service.impl.WorkflowUtilityWebServiceImpl.getDocumentStatusTransitionHistory(Long) | STYLE | DLS_DEAD_LOCAL_STORE | 1181 | Medium |
Method org.kuali.rice.kew.service.impl.WorkflowUtilityWebServiceImpl.routeNodeHasApproverActionRequest(String, String, String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 742 | Medium |
Method org.kuali.rice.kew.service.impl.WorkflowUtilityWebServiceImpl.routeNodeHasApproverActionRequest(DocumentType, String, RouteNode, Integer) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 767 | Medium |
Method org.kuali.rice.kew.service.impl.WorkflowUtilityWebServiceImpl.routeNodeHasApproverActionRequest(DocumentType, String, RouteNode, Integer) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 764 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.stats.dao.impl.StatsDAOOjbImpl.DocumentsRoutedReport(Stats, Date, Date) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 91 | Medium |
Method org.kuali.rice.kew.stats.dao.impl.StatsDAOOjbImpl.NumActiveItemsReport(Stats) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 57 | Medium |
Method org.kuali.rice.kew.stats.dao.impl.StatsDAOOjbImpl.NumInitiatedDocsByDocTypeReport(Stats) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 149 | Medium |
Method org.kuali.rice.kew.stats.dao.impl.StatsDAOOjbImpl.NumUsersReport(Stats) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 125 | Medium |
Method org.kuali.rice.kew.stats.dao.impl.StatsDAOOjbImpl.NumberOfDocTypesReport(Stats) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 72 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.stats.web.StatsForm.getBeginningDate() may expose internal representation by returning StatsForm.beginningDate | MALICIOUS_CODE | EI_EXPOSE_REP | 251 | Medium |
org.kuali.rice.kew.stats.web.StatsForm.getEndingDate() may expose internal representation by returning StatsForm.endingDate | MALICIOUS_CODE | EI_EXPOSE_REP | 259 | Medium |
org.kuali.rice.kew.stats.web.StatsForm.setBeginningDate(Date) may expose internal representation by storing an externally mutable object into StatsForm.beginningDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 255 | Medium |
org.kuali.rice.kew.stats.web.StatsForm.setEndingDate(Date) may expose internal representation by storing an externally mutable object into StatsForm.endingDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 263 | Medium |
Class org.kuali.rice.kew.stats.web.StatsForm defines non-transient non-serializable instance field stats | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.superuser.web.SuperUserAction.actionRequestApprove(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 182 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.superuser.web.SuperUserForm.getActionRequestRunPostProcessorCheck() may expose internal representation by returning SuperUserForm.actionRequestRunPostProcessorCheck | MALICIOUS_CODE | EI_EXPOSE_REP | 254 | Medium |
org.kuali.rice.kew.superuser.web.SuperUserForm.setActionRequestRunPostProcessorCheck(String[]) may expose internal representation by storing an externally mutable object into SuperUserForm.actionRequestRunPostProcessorCheck | MALICIOUS_CODE | EI_EXPOSE_REP2 | 257 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.useroptions.UserOptions defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 117 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kew.useroptions.UserOptionsId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 46 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.kuali.rice.kew.util.ByteArrayDataSource(byte[], String) may expose internal representation by storing an externally mutable object into ByteArrayDataSource.data | MALICIOUS_CODE | EI_EXPOSE_REP2 | 60 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.util.Utilities$PrioritySorter implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 205 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.util.Utilities$RouteLogActionRequestSorter implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 227 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.web.DummyLoginFilter.init(FilterConfig) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 46 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.web.FilterMapping defines compareTo(FilterMapping) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 358 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.web.ModuleRelativeForwardAction.messages isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 36 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of userSession in org.kuali.rice.kew.web.UserLoginFilter.doFilter(ServletRequest, ServletResponse, FilterChain) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 88 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The field org.kuali.rice.kew.web.session.UserSession.objectMap is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to pk in org.kuali.rice.kew.workgroup.BaseWorkgroupId.equals(Object) | STYLE | DLS_DEAD_LOCAL_STORE | 44 | Medium |
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kew.workgroup.BaseWorkgroupId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 43 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kew.workgroup.BaseWorkgroupMemberId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 50 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.AbstractTransformationFilter$CurrentElement be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 141 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.xml.DocumentTypeXmlParser.checkForOrphanedRouteNodes(Node, Node) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 946 | Medium |
Method org.kuali.rice.kew.xml.DocumentTypeXmlParser.parseAllDocumentTypes(Document) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 232 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.DocumentTypeXmlParser$DocTypeNode be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 1443 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.DocumentTypeXmlParser$RoutePathContext be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 1417 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.GroupXmlJAXBParser$DataNamespaceURIFilter be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 281 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to kimTypeAttributes in org.kuali.rice.kew.xml.GroupXmlParser.parseGroup(Element) | STYLE | DLS_DEAD_LOCAL_STORE | 163 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.xml.RuleTemplateXmlParser.parseRuleTemplateAttribute(Element, RuleTemplate) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 485 | Medium |
Method org.kuali.rice.kew.xml.RuleTemplateXmlParser.updateRuleDefaults(Element, RuleTemplate) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 296 | Medium |
Method org.kuali.rice.kew.xml.RuleTemplateXmlParser.updateRuleDefaults(Element, RuleTemplate) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 317 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to delegations in org.kuali.rice.kew.xml.RuleXmlParser.parseResponsibility(Element, RuleBaseValues) | STYLE | DLS_DEAD_LOCAL_STORE | 379 | Medium |
Method org.kuali.rice.kew.xml.RuleXmlParser.setDefaultRuleValues(RuleBaseValues) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 342 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.xml.XmlRenderer.renderBooleanElement(Element, String, Boolean, boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 60 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.xml.export.DocumentTypeXmlExporter$DocumentTypeParentComparator.getDepth(DocumentType) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 463 | Medium |
Should org.kuali.rice.kew.xml.export.DocumentTypeXmlExporter$DocumentTypeParentComparator be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 448 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.export.DocumentTypeXmlExporter$SplitJoinContext be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 472 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.xml.export.GroupXmlExporter.exportGroup(Element, Group) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 78 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of defaultActionOption, which is known to be non-null in org.kuali.rice.kew.xml.export.RuleTemplateXmlExporter.exportDefaults(Element, RuleTemplate) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 108 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.xstream.XStreamSafeEvaluator$SimpleNodeList be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 254 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kew.xml.xstream.XStreamSafeEvaluator$XPathSegment be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 228 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.bo.entity.impl.KimEntityBioDemographicsImpl.getBirthDate() may expose internal representation by returning KimEntityBioDemographicsImpl.birthDate | MALICIOUS_CODE | EI_EXPOSE_REP | 88 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityBioDemographicsImpl.getBirthDateUnmasked() may expose internal representation by returning KimEntityBioDemographicsImpl.birthDate | MALICIOUS_CODE | EI_EXPOSE_REP | 97 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityBioDemographicsImpl.getDeceasedDate() may expose internal representation by returning KimEntityBioDemographicsImpl.deceasedDate | MALICIOUS_CODE | EI_EXPOSE_REP | 104 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityBioDemographicsImpl.setBirthDate(Date) may expose internal representation by storing an externally mutable object into KimEntityBioDemographicsImpl.birthDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 230 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityBioDemographicsImpl.setDeceasedDate(Date) may expose internal representation by storing an externally mutable object into KimEntityBioDemographicsImpl.deceasedDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 237 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.bo.entity.impl.KimEntityCitizenshipImpl.getEndDate() may expose internal representation by returning KimEntityCitizenshipImpl.endDate | MALICIOUS_CODE | EI_EXPOSE_REP | 79 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityCitizenshipImpl.getStartDate() may expose internal representation by returning KimEntityCitizenshipImpl.startDate | MALICIOUS_CODE | EI_EXPOSE_REP | 93 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityCitizenshipImpl.setEndDate(Date) may expose internal representation by storing an externally mutable object into KimEntityCitizenshipImpl.endDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 107 | Medium |
org.kuali.rice.kim.bo.entity.impl.KimEntityCitizenshipImpl.setStartDate(Date) may expose internal representation by storing an externally mutable object into KimEntityCitizenshipImpl.startDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 114 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.bo.impl.GenericPermission.setDetailValues(AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 119 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.bo.impl.PersonImpl.identityManagementService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kim.bo.impl.PersonImpl.personService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of KimResponsibilityImpl.template in org.kuali.rice.kim.bo.role.impl.KimResponsibilityImpl.getNameToDisplay() | CORRECTNESS | NP_NULL_ON_SOME_PATH | 117 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.bo.ui.KimAttributeDataComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 28 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The field org.kuali.rice.kim.bo.ui.PersonDocumentGroup.kimGroupType is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The field org.kuali.rice.kim.bo.ui.PersonDocumentRole.attributeEntry is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Medium | |
The field org.kuali.rice.kim.bo.ui.PersonDocumentRole.definitions is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in org.kuali.rice.kim.client.acegi.KualiCasProxyTicketValidator.validateNow(ProxyTicketValidator) | STYLE | REC_CATCH_EXCEPTION | 113 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Invocation of toString on newAuthorities in org.kuali.rice.kim.client.acegi.KualiUserDetailsServiceImpl.loadUserByUsernameAndAuthorities(String, GrantedAuthority[]) | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 82 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to groupIdValues in org.kuali.rice.kim.dao.impl.KimRoleDaoOjb.getGroupMembers(Collection) | STYLE | DLS_DEAD_LOCAL_STORE | 146 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kim.document.GenericPermissionMaintainable.prepareBusinessObject(BusinessObject), since all org.kuali.rice.kim.bo.impl.GenericPermission are instances of org.kuali.rice.kns.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 105 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.kns.datadictionary.AttributeDefinition to org.kuali.rice.kns.datadictionary.KimNonDataDictionaryAttributeDefinition in org.kuali.rice.kim.document.IdentityManagementKimDocument.getKimAttributeDefnId(AttributeDefinition) | STYLE | BC_UNCONFIRMED_CAST | 135 | Medium |
org.kuali.rice.kim.document.IdentityManagementKimDocument is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 39 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.kns.datadictionary.AttributeDefinition to org.kuali.rice.kns.datadictionary.KimNonDataDictionaryAttributeDefinition in org.kuali.rice.kim.document.KimTypeAttributesHelper.getKimAttributeDefnId(AttributeDefinition) | STYLE | BC_UNCONFIRMED_CAST | 84 | Medium |
org.kuali.rice.kim.document.KimTypeAttributesHelper is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 43 | Medium |
Unwritten field: org.kuali.rice.kim.document.KimTypeAttributesHelper.attributes | CORRECTNESS | UWF_UNWRITTEN_FIELD | 57 | Medium |
Method org.kuali.rice.kim.document.KimTypeAttributesHelper.getAttributeValue(AttributeSet, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 132 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kim.document.ReviewResponsibilityMaintainable.prepareBusinessObject(BusinessObject), since all org.kuali.rice.kim.bo.impl.ReviewResponsibility are instances of org.kuali.rice.kns.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 154 | Medium |
org.kuali.rice.kim.document.ReviewResponsibilityMaintainable.reviewTemplateId should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 50 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.document.rule.AttributeValidationHelper.convertErrors(String, AttributeSet, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 158 | Medium |
Method org.kuali.rice.kim.document.rule.AttributeValidationHelper.convertErrorsForMappedFields(String, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 144 | Medium |
Method org.kuali.rice.kim.document.rule.AttributeValidationHelper.moveValidationErrorsToErrorMap(AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 125 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.document.rule.IdentityManagementPersonDocumentRule.checkUnassignableRoles(IdentityManagementPersonDocument) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 178 | Medium |
Method org.kuali.rice.kim.document.rule.IdentityManagementPersonDocumentRule.checkUnpopulatableGroups(IdentityManagementPersonDocument) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 196 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to errorsTemp in org.kuali.rice.kim.document.rule.IdentityManagementRoleDocumentRule.validateDelegationMemberRoleQualifier(List, List, KimTypeInfo) | STYLE | DLS_DEAD_LOCAL_STORE | 454 | Medium |
Dead store to errorsTemp in org.kuali.rice.kim.document.rule.IdentityManagementRoleDocumentRule.validateRoleQualifier(List, KimTypeInfo) | STYLE | DLS_DEAD_LOCAL_STORE | 305 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Call to equals() comparing different types in org.kuali.rice.kim.lookup.KimDocumentRoleMemberLookupableHelperServiceImpl.getSearchResultsHelper(Map, boolean) | CORRECTNESS | EC_UNRELATED_TYPES | 66 | High |
Call to equals() comparing different types in org.kuali.rice.kim.lookup.KimDocumentRoleMemberLookupableHelperServiceImpl.getSearchResultsHelper(Map, boolean) | CORRECTNESS | EC_UNRELATED_TYPES | 66 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.lookup.PermissionLookupableHelperServiceImpl.getMemberSearchResults(Map, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 121 | Medium |
Possible null pointer dereference in org.kuali.rice.kim.lookup.PermissionLookupableHelperServiceImpl.getPermissionsWithPermissionSearchCriteria(Map, boolean) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 237 | Medium |
Possible null pointer dereference in org.kuali.rice.kim.lookup.PermissionLookupableHelperServiceImpl.getPermissionsWithPermissionSearchCriteria(Map, boolean) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 237 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kim.lookup.PersonLookupableHelperServiceImpl defines non-transient non-serializable instance field title | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.lookup.ResponsibilityLookupableHelperServiceImpl.getMemberSearchResults(Map, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 124 | Medium |
Possible null pointer dereference in org.kuali.rice.kim.lookup.ResponsibilityLookupableHelperServiceImpl.getResponsibilitiesWithResponsibilitySearchCriteria(Map, boolean) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 247 | Medium |
Possible null pointer dereference in org.kuali.rice.kim.lookup.ResponsibilityLookupableHelperServiceImpl.getResponsibilitiesWithResponsibilitySearchCriteria(Map, boolean) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 247 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to attributeRows in org.kuali.rice.kim.lookup.RoleLookupableHelperServiceImpl.getRows() | STYLE | DLS_DEAD_LOCAL_STORE | 253 | High |
Dead store to kimTypeId in org.kuali.rice.kim.lookup.RoleLookupableHelperServiceImpl.getSearchResults(Map) | STYLE | DLS_DEAD_LOCAL_STORE | 113 | Medium |
Method org.kuali.rice.kim.lookup.RoleLookupableHelperServiceImpl.getSearchResultsHelper(Map, boolean) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 297 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.lookup.RoleMemberLookupableHelperServiceImpl.getActualSizeIfTruncated(List) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 318 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.kns.rule.BusinessRule to org.kuali.rice.kim.rule.ui.AddPersonDocumentDelegationMemberQualifierRule in org.kuali.rice.kim.rule.event.ui.AddPersonDocumentDelegationMemberQualifierEvent.invokeRuleMethod(BusinessRule) | STYLE | BC_UNCONFIRMED_CAST | 58 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to document in org.kuali.rice.kim.rules.ui.PersonDocumentDelegationMemberRule.processAddPersonDelegationMember(AddPersonDelegationMemberEvent) | STYLE | DLS_DEAD_LOCAL_STORE | 42 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kim.service.impl.GroupInternalServiceImpl$MembersDiff be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 121 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl.getHasPermissionByTemplateCache(String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 322 | Medium |
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl.getHasPermissionCache(String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 314 | Medium |
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl.getIsAuthorizedByTemplateNameFromCache(String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 330 | Medium |
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl.getIsAuthorizedFromCache(String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 338 | Medium |
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl.getIsGroupMemberOfGroupCache(String, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 298 | Medium |
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl.getIsMemberOfGroupCache(String, String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 289 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.KimModuleService.getUrlParameters(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 185 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible doublecheck on org.kuali.rice.kim.service.impl.KimTypeInfoServiceImpl.allLoaded in org.kuali.rice.kim.service.impl.KimTypeInfoServiceImpl.getAllTypes() | MT_CORRECTNESS | DC_DOUBLECHECK | 47 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.PermissionServiceImpl.getMatchingPermissions(List, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 275 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.PermissionUpdateServiceImpl.savePermission(String, String, String, String, String, boolean, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 88 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kim.service.impl.PersonServiceImpl.convertEntityToPerson(KimEntityDefaultInfo, KimPrincipal), since all RuntimeException are instances of RuntimeException | STYLE | BC_VACUOUS_INSTANCEOF | 184 | Medium |
Method org.kuali.rice.kim.service.impl.PersonServiceImpl.findPeople(Map, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 340 | Medium |
Method org.kuali.rice.kim.service.impl.PersonServiceImpl.convertPersonPropertiesToEntityProperties(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 416 | Medium |
Method org.kuali.rice.kim.service.impl.PersonServiceImpl.getNonPersonSearchCriteria(BusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 630 | Medium |
Method org.kuali.rice.kim.service.impl.PersonServiceImpl.resolvePrincipalNamesToPrincipalIds(BusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 696 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.service.impl.RoleManagementServiceImpl.shouldCacheRole(String) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 415 | Medium |
org.kuali.rice.kim.service.impl.RoleManagementServiceImpl.getPrincipalHasRoleCacheCache(String) has Boolean return type and returns explicit null | BAD_PRACTICE | NP_BOOLEAN_RETURN_NULL | 160 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.RoleServiceBase.convertQualifierKeys(AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 186 | Medium |
Method org.kuali.rice.kim.service.impl.RoleServiceBase.findDelegateMembersCompleteInfo(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1000 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of tempService in org.kuali.rice.kim.service.impl.RoleServiceImpl.getDelegationTypeService(String) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 640 | Medium |
Method org.kuali.rice.kim.service.impl.RoleServiceImpl.findDelegateMembersCompleteInfo(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1327 | Medium |
Method org.kuali.rice.kim.service.impl.RoleServiceImpl.getRoleMembers(List, AttributeSet, boolean, Set) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 466 | Medium |
Method org.kuali.rice.kim.service.impl.RoleServiceImpl.getRoleQualifiersForPrincipal(String, List, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 305 | Medium |
Method org.kuali.rice.kim.service.impl.RoleServiceImpl.getRoleQualifiersForPrincipalIncludingNested(String, List, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 264 | Medium |
Method org.kuali.rice.kim.service.impl.RoleServiceImpl.principalHasRole(String, List, AttributeSet, boolean) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 895 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.RoleUpdateServiceImpl.addDelegationMemberAttributeData(KimDelegationMemberImpl, AttributeSet, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 392 | Medium |
Method org.kuali.rice.kim.service.impl.RoleUpdateServiceImpl.addMemberAttributeData(RoleMemberImpl, AttributeSet, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 363 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to origRole in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.saveRole(IdentityManagementRoleDocument) | STYLE | DLS_DEAD_LOCAL_STORE | 1999 | High |
Dead store to origMembers in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleDelegations(IdentityManagementRoleDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 2370 | Medium |
Dead store to origAttributes in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(IdentityManagementRoleDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 2183 | Medium |
Dead store to pndMemberRoleQualifier in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadDelegationMemberQualifiers(IdentityManagementPersonDocument, AttributeDefinitionMap, List) | STYLE | DLS_DEAD_LOCAL_STORE | 454 | Medium |
Dead store to pndMemberRoleQualifier in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadDelegationMemberQualifiers(IdentityManagementRoleDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 1942 | Medium |
Dead store to pndMember in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadDelegationMembers(IdentityManagementPersonDocument, List, RoleImpl) | STYLE | DLS_DEAD_LOCAL_STORE | 423 | Medium |
Dead store to pndMember in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadDelegationMembers(IdentityManagementRoleDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 1906 | Medium |
Dead store to pndMember in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadGroupMembers(IdentityManagementGroupDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 2506 | Medium |
Dead store to pndGroupQualifier in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadGroupQualifiers(IdentityManagementGroupDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 2532 | Medium |
Dead store to pndMemberRoleQualifier in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadRoleMemberQualifiers(IdentityManagementRoleDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 1825 | Medium |
Dead store to pndMember in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadRoleMembers(IdentityManagementRoleDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 1593 | Medium |
Dead store to origMembers in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.populateDelegations(IdentityManagementPersonDocument) | STYLE | DLS_DEAD_LOCAL_STORE | 1344 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getAttributeEntries(AttributeDefinitionMap) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 264 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getGroupsByIds(List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 2634 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadDelegationMemberQualifiers(IdentityManagementPersonDocument, AttributeDefinitionMap, List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 459 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadDelegationMemberQualifiers(IdentityManagementRoleDocument, List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1948 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadGroupQualifiers(IdentityManagementGroupDocument, List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 2538 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadRoleMemberQualifiers(IdentityManagementRoleDocument, List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1849 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.populateDocRoleQualifier(List, AttributeDefinitionMap) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 718 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.service.impl.UiDocumentServiceImpl$GroupMemberNameComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 2492 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.service.impl.UiDocumentServiceImpl$RoleMemberNameComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 1580 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return false in org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.extractErrorsFromGlobalVariablesErrorMap(String), since a org.kuali.rice.kns.util.TypedArrayList can't be a String | CORRECTNESS | BC_IMPOSSIBLE_INSTANCEOF | 502 | Medium |
instanceof will always return true in org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.extractErrorsFromGlobalVariablesErrorMap(String), since all org.kuali.rice.kns.util.TypedArrayList are instances of java.util.List | STYLE | BC_VACUOUS_INSTANCEOF | 505 | Medium |
Method org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.extractErrorsFromGlobalVariablesErrorMap(String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 511 | Medium |
Method org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.areAllAttributeValuesEmpty(AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 862 | Medium |
Method org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.getAttributeValue(AttributeSet, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 874 | Medium |
Method org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.validateAttributes(String, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 178 | Medium |
Method org.kuali.rice.kim.service.support.impl.KimTypeServiceBase.validateReferencesExistAndActive(KimTypeInfo, AttributeSet, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 260 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.sesn.DistributedSession.getMaxIdleTime(Long, Date) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 229 | Medium |
Method org.kuali.rice.kim.sesn.DistributedSession.touchSesn(String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 200 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.util.KualiDateMask doesn't override java.util.Date.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 34 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.web.struts.action.IdentityManagementPersonDocumentAction.addEmpInfo(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 213 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.workflow.attribute.KimTypeQualifierResolver.typeServices isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 64 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.UserSession.hasMatchingSessionTicket(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 346 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused field: org.kuali.rice.kns.authorization.BusinessObjectAuthorizerBase.persistenceStructureService | PERFORMANCE | UUF_UNUSED_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kns.bo.AdHocRoutePersonId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 61 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.bo.AdHocRouteRecipient.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 40 | Medium |
Method new org.kuali.rice.kns.bo.AdHocRouteRecipient() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 60 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kns.bo.AdHocRouteRecipientId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 52 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kns.bo.AdHocRouteWorkgroupId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 61 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kns.bo.ConcurrentLockId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.bo.Namespace doesn't override KualiCodeBase.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 27 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kns.bo.ParameterDetailTypeId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of o, which is known to be non-null in org.kuali.rice.kns.bo.ParameterId.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 52 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.bo.PersistableAttachmentBase.getAttachmentContent() may expose internal representation by returning PersistableAttachmentBase.attachmentContent | MALICIOUS_CODE | EI_EXPOSE_REP | 37 | Medium |
org.kuali.rice.kns.bo.PersistableAttachmentBase.setAttachmentContent(byte[]) may expose internal representation by storing an externally mutable object into PersistableAttachmentBase.attachmentContent | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.bo.SessionDocument.getSerializedDocumentForm() may expose internal representation by returning SessionDocument.serializedDocumentForm | MALICIOUS_CODE | EI_EXPOSE_REP | 46 | Medium |
org.kuali.rice.kns.bo.SessionDocument.setSerializedDocumentForm(byte[]) may expose internal representation by storing an externally mutable object into SessionDocument.serializedDocumentForm | MALICIOUS_CODE | EI_EXPOSE_REP2 | 53 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field org.kuali.rice.kns.bo.options.StateValuesFinder.labels from instance method org.kuali.rice.kns.bo.options.StateValuesFinder.clearInternalCache() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 62 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.dao.impl.LookupDaoJpa.executeSearch(Class, Criteria, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 205 | Medium |
Comparison of String parameter using == or != in org.kuali.rice.kns.dao.impl.LookupDaoJpa.addLogicalOperatorCriteria(String, String, Class, boolean, Criteria, String) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 558 | Medium |
Potentially dangerous use of non-short-circuit logic in org.kuali.rice.kns.dao.impl.LookupDaoJpa.findObjectByMap(Object, Map) | STYLE | NS_DANGEROUS_NON_SHORT_CIRCUIT | 354 | High |
Method org.kuali.rice.kns.dao.impl.LookupDaoJpa.addInactivateableFromToCurrentCriteria(Object, String, Criteria, Map) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 511 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoJpa.findCountByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 80 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoJpa.findObjectByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 350 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoJpa.getCollectionCriteriaFromMap(PersistableBusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 141 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to searchResults in org.kuali.rice.kns.dao.impl.LookupDaoOjb.executeSearch(Class, Criteria, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 153 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoOjb.executeSearch(Class, Criteria, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 158 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoOjb.findCountByMap(Object, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 254 | Medium |
Comparison of String parameter using == or != in org.kuali.rice.kns.dao.impl.LookupDaoOjb.addLogicalOperatorCriteria(String, String, Class, boolean, Criteria, String) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 483 | Medium |
Potentially dangerous use of non-short-circuit logic in org.kuali.rice.kns.dao.impl.LookupDaoOjb.findObjectByMap(Object, Map) | STYLE | NS_DANGEROUS_NON_SHORT_CIRCUIT | 273 | High |
Method org.kuali.rice.kns.dao.impl.LookupDaoOjb.findCountByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 226 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoOjb.findObjectByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 269 | Medium |
Method org.kuali.rice.kns.dao.impl.LookupDaoOjb.getCollectionCriteriaFromMap(BusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 96 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in org.kuali.rice.kns.dao.impl.PersistenceDaoJpa.retrieveReference(Object, String) | STYLE | REC_CATCH_EXCEPTION | 108 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to entityManager in org.kuali.rice.kns.dao.proxy.PersistenceDaoProxy.getDao(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 58 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to collectionClasses in org.kuali.rice.kns.datadictionary.DataDictionary.buildReadDescriptor(Class, String) | STYLE | DLS_DEAD_LOCAL_STORE | 516 | Medium |
Dead store to collectionClasses in org.kuali.rice.kns.datadictionary.DataDictionary.getCollectionElementClass(Class, String) | STYLE | DLS_DEAD_LOCAL_STORE | 457 | Medium |
Dead store to indexName in org.kuali.rice.kns.datadictionary.DataDictionary.indexSource(String) | STYLE | DLS_DEAD_LOCAL_STORE | 122 | Medium |
org.kuali.rice.kns.datadictionary.DataDictionary.persistenceStructureService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
Write to static field org.kuali.rice.kns.datadictionary.DataDictionary.validateEBOs from instance method org.kuali.rice.kns.datadictionary.DataDictionary.validateDD() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 183 | High |
Write to static field org.kuali.rice.kns.datadictionary.DataDictionary.validateEBOs from instance method org.kuali.rice.kns.datadictionary.DataDictionary.validateDD(boolean) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 171 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of sourceClass in org.kuali.rice.kns.datadictionary.PrimitiveAttributeDefinition.completeValidation(Class, Class) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 103 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.ApcSelectControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 37 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.ButtonControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 30 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.CheckboxControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 29 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.ControlDefinitionBase defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 420 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.CurrencyControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 37 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.FileControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 31 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.HiddenControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 27 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.KualiUserControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.LinkControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 34 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.LookupHiddenControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 28 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.LookupReadonlyControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 28 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.MultiselectControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 27 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.RadioControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 28 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.SelectControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.TextControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 29 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.TextareaControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 27 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.datadictionary.control.WorkflowWorkgroupControlDefinition inherits equals and uses Object.hashCode() | BAD_PRACTICE | HE_INHERITS_EQUALS_USE_HASHCODE | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to regexString in org.kuali.rice.kns.datadictionary.validation.CharacterLevelValidationPattern.getRegexPattern() | STYLE | DLS_DEAD_LOCAL_STORE | 81 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of exportMap in org.kuali.rice.kns.datadictionary.validation.charlevel.RegexValidationPattern.extendExportMap(ExportMap) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 53 | High |
Nullcheck of exportMap at line 58 of value previously dereferenced in org.kuali.rice.kns.datadictionary.validation.charlevel.RegexValidationPattern.extendExportMap(ExportMap) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 53 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kns.document.MaintenanceDocumentBase.validateBusinessRules(KualiDocumentEvent), since all org.kuali.rice.kns.document.MaintenanceDocumentBase are instances of org.kuali.rice.kns.document.MaintenanceDocument | STYLE | BC_VACUOUS_INSTANCEOF | 704 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.LOG isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 47 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase.maintenanceDocumentDictionaryService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.document.authorization.MaintenanceDocumentPresentationControllerBase.maintenanceDocumentDictionaryService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of fieldRestriction in org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictionsBase.getFieldRestriction(String) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 54 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method call in new org.kuali.rice.kns.exception.ExceptionIncident(Exception, Map) passes null for nonnull parameter of initialize(Exception, Map) | CORRECTNESS | NP_NULL_PARAM_DEREF | 79 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.inquiry.KualiInquirableImpl.businessObjectService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.inquiry.KualiInquirableImpl.SUPER_CLASS_TRANSLATOR_LIST isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 88 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to fieldsForLookup in org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1085 | High |
Dead store to fields in org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl.setRows() | STYLE | DLS_DEAD_LOCAL_STORE | 1036 | Medium |
org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl.getSupplementalMenuBar() invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 1362 | Medium |
org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl.RESULTS_DEFAULT_MAX_COLUMN_LENGTH should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 694 | Medium |
Method org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl.preprocessDateFields(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1226 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to elementClass in org.kuali.rice.kns.lookup.HtmlData.getTitleText(String, Class, Map) | STYLE | DLS_DEAD_LOCAL_STORE | 214 | Medium |
Method org.kuali.rice.kns.lookup.HtmlData.getTitleText(String, Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 217 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl.getExternalizableBusinessObjectFieldValues(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 159 | Medium |
Method org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl.getSearchResultsHelper(Map, boolean) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 227 | Medium |
Method org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl.removeExternalizableBusinessObjectFieldValues(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 142 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.lookup.LookupUtils.generateFieldConversions(BusinessObject, String, BusinessObjectRelationship, String, List, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 686 | Medium |
Method org.kuali.rice.kns.lookup.LookupUtils.generateLookupParameters(BusinessObject, String, BusinessObjectRelationship, String, List, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 724 | Medium |
Method org.kuali.rice.kns.lookup.LookupUtils.getNestedBusinessObject(BusinessObject, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 635 | Medium |
Method org.kuali.rice.kns.lookup.LookupUtils.setFieldDirectInquiry(Field) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 509 | Medium |
Write to static field org.kuali.rice.kns.lookup.LookupUtils.businessObjectDictionaryService from instance method org.kuali.rice.kns.lookup.LookupUtils.setBusinessObjectDictionaryService(BusinessObjectDictionaryService) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 77 | High |
Write to static field org.kuali.rice.kns.lookup.LookupUtils.businessObjectMetaDataService from instance method org.kuali.rice.kns.lookup.LookupUtils.setBusinessObjectMetaDataService(BusinessObjectMetaDataService) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 101 | High |
Write to static field org.kuali.rice.kns.lookup.LookupUtils.dataDictionaryService from instance method org.kuali.rice.kns.lookup.LookupUtils.setDataDictionaryService(DataDictionaryService) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 81 | High |
Write to static field org.kuali.rice.kns.lookup.LookupUtils.dateTimeService from instance method org.kuali.rice.kns.lookup.LookupUtils.setDateTimeService(DateTimeService) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 93 | High |
Write to static field org.kuali.rice.kns.lookup.LookupUtils.kualiConfigurationService from instance method org.kuali.rice.kns.lookup.LookupUtils.setKualiConfigurationService(KualiConfigurationService) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 89 | High |
Write to static field org.kuali.rice.kns.lookup.LookupUtils.persistenceStructureService from instance method org.kuali.rice.kns.lookup.LookupUtils.setPersistenceStructureService(PersistenceStructureService) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 85 | High |
Method org.kuali.rice.kns.lookup.LookupUtils.forceUppercase(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 173 | Medium |
Method org.kuali.rice.kns.lookup.LookupUtils.getPrimitiveReference(BusinessObject, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 591 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Self assignment of field ApcValuesFinder.parameterNamespace in new org.kuali.rice.kns.lookup.keyvalues.ApcValuesFinder(String, String, String) | CORRECTNESS | SA_FIELD_SELF_ASSIGNMENT | 42 | High |
Uninitialized read of parameterNamespace in new org.kuali.rice.kns.lookup.keyvalues.ApcValuesFinder(String, String, String) | CORRECTNESS | UR_UNINIT_READ | 42 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.lookup.keyvalues.CampusTypeComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 24 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Incorrect lazy initialization of static field org.kuali.rice.kns.lookup.keyvalues.CampusValuesFinder.campusCache in org.kuali.rice.kns.lookup.keyvalues.CampusValuesFinder.getKeyValues() | MT_CORRECTNESS | LI_LAZY_INIT_STATIC | 41 | Medium |
org.kuali.rice.kns.lookup.keyvalues.CampusValuesFinder.campusCache should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 34 | Medium |
Write to static field org.kuali.rice.kns.lookup.keyvalues.CampusValuesFinder.campusCache from instance method org.kuali.rice.kns.lookup.keyvalues.CampusValuesFinder.clearInternalCache() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 60 | High |
Sychronization on getClass rather than class literal in org.kuali.rice.kns.lookup.keyvalues.CampusValuesFinder.getKeyValues() | MT_CORRECTNESS | WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL | 42 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.lookup.keyvalues.NamespaceComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 22 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.lookup.keyvalues.ParameterTypeComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 22 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to cachedValues in org.kuali.rice.kns.maintenance.KualiMaintainableImpl.setGenerateDefaultValues(String) | STYLE | DLS_DEAD_LOCAL_STORE | 710 | Medium |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.getMultiValueIdentifierList(Collection, List) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 544 | Medium |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.hasBusinessObjectExisted(BusinessObject, List, List) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 556 | Medium |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.businessObjectAuthorizationService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.businessObjectDictionaryService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.businessObjectMetaDataService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.businessObjectService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.dataDictionaryService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.documentHelperService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.encryptionService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.maintenanceDocumentDictionaryService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.maintenanceDocumentService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.persistenceStructureService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
org.kuali.rice.kns.maintenance.KualiMaintainableImpl.personService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium | |
Method org.kuali.rice.kns.maintenance.KualiMaintainableImpl.getMultiValueIdentifierList(Collection, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 546 | Medium |
Method org.kuali.rice.kns.maintenance.KualiMaintainableImpl.hasBusinessObjectExisted(BusinessObject, List, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 558 | Medium |
Method org.kuali.rice.kns.maintenance.KualiMaintainableImpl.decryptEncryptedData(Map, MaintenanceDocument, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 219 | Medium |
Method org.kuali.rice.kns.maintenance.KualiMaintainableImpl.performFieldForceUpperCase(BusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1387 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to fieldValues in org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase.putInactivationBlockingErrorOnPage(MaintenanceDocument, InactivationBlockingMetadata) | STYLE | DLS_DEAD_LOCAL_STORE | 306 | Medium |
Invocation of toString on org.kuali.rice.kns.util.ErrorMessage.getMessageParameters() in org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase.showErrorMap() | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 1108 | Medium |
org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase.LOG isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 76 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.kns.rule.BusinessRule to org.kuali.rice.kns.rule.DocumentAuditRule in org.kuali.rice.kns.rule.event.DocumentAuditEvent.invokeRuleMethod(BusinessRule) | STYLE | BC_UNCONFIRMED_CAST | 63 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to docOrBoClass in org.kuali.rice.kns.rules.DocumentRuleBase.isAddHocRoutePersonValid(Document, AdHocRoutePerson) | STYLE | DLS_DEAD_LOCAL_STORE | 382 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.rules.PromptBeforeValidationBase.askOrAnalyzeYesNoQuestion(String, String) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 222 | Medium |
org.kuali.rice.kns.rules.PromptBeforeValidationBase.LOG isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 48 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kns.rules.PromptBeforeValidationBase$ContextSession be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 74 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kns.rules.PromptBeforeValidationBase$IsAskingException be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 55 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.AttachmentServiceImpl.createAttachment(PersistableBusinessObject, String, String, int, InputStream, String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 92 | Medium |
org.kuali.rice.kns.service.impl.AttachmentServiceImpl.deleteAttachmentContents(Attachment) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 164 | Medium |
org.kuali.rice.kns.service.impl.AttachmentServiceImpl.deletePendingAttachmentsModifiedBefore(long) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 244 | Medium |
org.kuali.rice.kns.service.impl.AttachmentServiceImpl.moveAttachmentFromPending(Attachment, String) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 153 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.BusinessObjectAuthorizationServiceImpl.getButtonFieldPermissionDetails(BusinessObject, String) uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 653 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.BusinessObjectMetaDataServiceImpl.getNestedBOClass(BusinessObject, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 445 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible doublecheck on org.kuali.rice.kns.service.impl.BusinessObjectServiceImpl.illegalBusinessObjectsForSaveInitialized in org.kuali.rice.kns.service.impl.BusinessObjectServiceImpl.isBusinessObjectAllowedForSave(PersistableBusinessObject) | MT_CORRECTNESS | DC_DOUBLECHECK | 141 | Medium |
org.kuali.rice.kns.service.impl.BusinessObjectServiceImpl.isBusinessObjectAllowedForSave(PersistableBusinessObject) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 146 | Medium |
Method org.kuali.rice.kns.service.impl.BusinessObjectServiceImpl.getReferenceIfExists(BusinessObject, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 315 | Medium |
Method org.kuali.rice.kns.service.impl.BusinessObjectServiceImpl.linkUserFields(List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 414 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.service.impl.ConfigurableDateTimeServiceImpl.getCurrentDate() may expose internal representation by returning ConfigurableDateTimeServiceImpl.currentDate | MALICIOUS_CODE | EI_EXPOSE_REP | 36 | Medium |
org.kuali.rice.kns.service.impl.ConfigurableDateTimeServiceImpl.setCurrentDate(Date) may expose internal representation by storing an externally mutable object into ConfigurableDateTimeServiceImpl.currentDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 31 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.DictionaryValidationServiceImpl.validateBusinessObjectsFromDescriptors(Object, PropertyDescriptor[], int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 555 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.InactivateableFromToServiceImpl.buildGroupByValueString(BusinessObject, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 193 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.kuali.rice.kns.service.impl.InactivationBlockingDisplayServiceImpl.persistenceService | PERFORMANCE | URF_UNREAD_FIELD | 141 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of exceptionIncident in org.kuali.rice.kns.service.impl.KualiExceptionIncidentServiceImpl.report(KualiExceptionIncident) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 173 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to subItems in org.kuali.rice.kns.service.impl.MaintenanceDocumentDictionaryServiceImpl.getMaintainableItem(String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 423 | Medium |
org.kuali.rice.kns.service.impl.MaintenanceDocumentDictionaryServiceImpl.LOG isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 49 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.ModuleServiceBase.getExternalizableBusinessObjectLookupUrl(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 221 | Medium |
Method org.kuali.rice.kns.service.impl.ModuleServiceBase.getUrlParameters(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 182 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to key in org.kuali.rice.kns.service.impl.ParameterServiceBase.getParameter(Class, String) | STYLE | DLS_DEAD_LOCAL_STORE | 426 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kns.service.impl.PersistenceStructureServiceJpaImpl.listCollectionObjectTypes(PersistableBusinessObject), since all org.kuali.rice.kns.bo.PersistableBusinessObject are instances of org.kuali.rice.kns.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 609 | Medium |
instanceof will always return true in org.kuali.rice.kns.service.impl.PersistenceStructureServiceJpaImpl.listReferenceObjectFields(PersistableBusinessObject), since all org.kuali.rice.kns.bo.PersistableBusinessObject are instances of org.kuali.rice.kns.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 624 | Medium |
org.kuali.rice.kns.service.impl.PersistenceStructureServiceJpaImpl.referenceConversionMap isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 62 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kns.service.impl.PersistenceStructureServiceOjbImpl.listCollectionObjectTypes(PersistableBusinessObject), since all org.kuali.rice.kns.bo.PersistableBusinessObject are instances of org.kuali.rice.kns.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 648 | Medium |
instanceof will always return true in org.kuali.rice.kns.service.impl.PersistenceStructureServiceOjbImpl.listReferenceObjectFields(PersistableBusinessObject), since all org.kuali.rice.kns.bo.PersistableBusinessObject are instances of org.kuali.rice.kns.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 663 | Medium |
org.kuali.rice.kns.service.impl.PersistenceStructureServiceOjbImpl.referenceConversionMap isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 63 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Call to equals() comparing different types in org.kuali.rice.kns.service.impl.PostProcessorServiceImpl.doActionTaken(ActionTakenEventDTO) | CORRECTNESS | EC_UNRELATED_TYPES | 146 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of form at line 212 of value previously dereferenced in org.kuali.rice.kns.service.impl.SessionDocumentServiceImpl.setDocumentForm(KualiDocumentFormBase, UserSession, String) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 163 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.util.AuditError.getParams() may expose internal representation by returning AuditError.params | MALICIOUS_CODE | EI_EXPOSE_REP | 103 | Medium |
org.kuali.rice.kns.util.AuditError.setParams(String[]) may expose internal representation by storing an externally mutable object into AuditError.params | MALICIOUS_CODE | EI_EXPOSE_REP2 | 112 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.util.BeanPropertyComparator$1 stored into non-transient field BeanPropertyComparator.booleanComparator | BAD_PRACTICE | SE_BAD_FIELD_STORE | 77 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
integral division result cast to double or float in org.kuali.rice.kns.util.DateUtils.getDifferenceInDays(Timestamp, Timestamp) | STYLE | ICAST_IDIV_CAST_TO_DOUBLE | 146 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.util.ErrorMessage.getMessageParameters() may expose internal representation by returning ErrorMessage.messageParameters | MALICIOUS_CODE | EI_EXPOSE_REP | 75 | Medium |
org.kuali.rice.kns.util.ErrorMessage.setMessageParameters(String[]) may expose internal representation by storing an externally mutable object into ErrorMessage.messageParameters | MALICIOUS_CODE | EI_EXPOSE_REP2 | 71 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to meshedRows in org.kuali.rice.kns.util.FieldUtils.meshSections(List, List, List, String, boolean, MaintenanceDocumentRestrictions, String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 1085 | Medium |
Method org.kuali.rice.kns.util.FieldUtils.fixFieldForForm(Field, List, String, String, boolean, MaintenanceDocumentRestrictions, String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 854 | Medium |
Method org.kuali.rice.kns.util.FieldUtils.populateBusinessObjectFromMap(BusinessObject, Map, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 743 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.util.InactiveRecordsHidingUtils.setShowInactiveRecords(Map, String, boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 78 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.util.KNSUtils.getIntegerValue(String) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 86 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.util.MessageMap.getMessageCount(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 355 | Medium |
Method org.kuali.rice.kns.util.MessageMap.merge(Map, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 84 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.util.ObjectUtils.createHybridBusinessObject(BusinessObject, BusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 196 | Medium |
Method org.kuali.rice.kns.util.ObjectUtils.equalByKeys(PersistableBusinessObject, PersistableBusinessObject) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 692 | Medium |
Method org.kuali.rice.kns.util.ObjectUtils.materializeSubObjectsToDepth(PersistableBusinessObject, int) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 930 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.kns.util.OjbCharBooleanConversion.javaToSql(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 32 | Medium |
Redundant nullcheck of source, which is known to be non-null in org.kuali.rice.kns.util.OjbCharBooleanConversion.sqlToJava(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.util.OjbKualiIntegerFieldConversion.javaToSql(Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 31 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.kns.web.struts.pojo.PojoFormBase to org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase in org.kuali.rice.kns.util.WebUtils.isFormSessionDocument(PojoFormBase) | STYLE | BC_UNCONFIRMED_CAST | 476 | Medium |
instanceof will always return true in org.kuali.rice.kns.util.WebUtils.getMethodToCallSettingAttribute(ActionForm, HttpServletRequest, String), since all org.apache.struts.action.ActionForm are instances of org.apache.struts.action.ActionForm | STYLE | BC_VACUOUS_INSTANCEOF | 164 | Medium |
Dead store to params in org.kuali.rice.kns.util.WebUtils.getMultipartParameters(HttpServletRequest, ActionServletWrapper, ActionForm, ActionMapping) | STYLE | DLS_DEAD_LOCAL_STORE | 346 | High |
Dead store to files in org.kuali.rice.kns.util.WebUtils.getMultipartParameters(HttpServletRequest, ActionServletWrapper, ActionForm, ActionMapping) | STYLE | DLS_DEAD_LOCAL_STORE | 364 | Medium |
org.kuali.rice.kns.util.WebUtils.KEY_KUALI_FORM_IN_SESSION isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 482 | High |
Method org.kuali.rice.kns.util.WebUtils.filterHtmlAndReplaceRiceMarkup(String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 705 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.kuali.rice.kns.util.cache.FastByteArrayInputStream(byte[], int) may expose internal representation by storing an externally mutable object into FastByteArrayInputStream.buf | MALICIOUS_CODE | EI_EXPOSE_REP2 | 40 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.util.cache.FastByteArrayOutputStream.getByteArray() may expose internal representation by returning FastByteArrayOutputStream.buf | MALICIOUS_CODE | EI_EXPOSE_REP | 69 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to cache in org.kuali.rice.kns.util.cache.ObjectCacheOSCacheImpl.cache(Identity, Object) | STYLE | DLS_DEAD_LOCAL_STORE | 83 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.util.comparator.BeanPropertyComparator$1 stored into non-transient field BeanPropertyComparator.booleanComparator | BAD_PRACTICE | SE_BAD_FIELD_STORE | 78 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kns.util.documentserializer.DocumentSerializationState$SerializationPropertyElement be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 38 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kns.util.documentserializer.SerializationState$SerializationPropertyElement be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 38 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.util.spring.AnnotationAndNameMatchingTransactionAttributeSource.setTimeout(TransactionAttribute) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 70 | Medium |
org.kuali.rice.kns.util.spring.AnnotationAndNameMatchingTransactionAttributeSource doesn't override org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 29 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.web.EditablePropertiesHistoryHolder.getMaxHistoryLength() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 59 | Medium |
org.kuali.rice.kns.web.EditablePropertiesHistoryHolder is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 38 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.format.FormatException.getErrorArgs() may expose internal representation by returning FormatException.errorArgs | MALICIOUS_CODE | EI_EXPOSE_REP | 113 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.format.Formatter.unwrapString(Object) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 516 | Medium |
Nullcheck of target at line 515 of value previously dereferenced in org.kuali.rice.kns.web.format.Formatter.unwrapString(Object) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 509 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.servlet.KualiDWRServlet.init(ServletConfig) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 50 | Medium |
org.kuali.rice.kns.web.servlet.KualiDWRServlet.HACK_ADDITIONAL_FILES isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 44 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.servlet.PostDataLoadEncryptionServlet.service(ServletRequest, ServletResponse) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 70 | Medium |
Method org.kuali.rice.kns.web.servlet.PostDataLoadEncryptionServlet.execute(String, boolean) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 92 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.servlet.dwr.GlobalResourceDelegatingSpringCreator.APPLICATION_BEAN_FACTORY isn't final and can't be protected from malicious code | MALICIOUS_CODE | MS_CANNOT_BE_FINAL | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Invocation of toString on textAreaParams in org.kuali.rice.kns.web.struts.action.KualiAction.getTextAreaParams(HttpServletRequest) | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 1055 | Medium |
Invocation of toString on inquiryParams in org.kuali.rice.kns.web.struts.action.KualiAction.performInquiry(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 667 | Medium |
org.kuali.rice.kns.web.struts.action.KualiAction.performLookup(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 542 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kns.web.struts.action.KualiActionServlet defines non-transient non-serializable instance field serverConfigOverride | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.kns.web.struts.action.KualiActionServlet$KualiActionServletConfig be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 116 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.disapprove(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 942 | Medium |
org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.DOCUMENT_LOAD_COMMANDS should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to cancelForward in org.kuali.rice.kns.web.struts.action.KualiExceptionHandlerAction.executeException(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 128 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to helpForm in org.kuali.rice.kns.web.struts.action.KualiHelpAction.getHelpUrlByNamespace(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 458 | Medium |
org.kuali.rice.kns.web.struts.action.KualiHelpAction.getAttributeValidationPatternName(AttributeDefinition) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 132 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to kualiInquirable in org.kuali.rice.kns.web.struts.action.KualiInquiryAction.toggleTab(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 297 | Medium |
Load of known null value in org.kuali.rice.kns.web.struts.action.KualiInquiryAction.export(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 363 | Medium |
Method org.kuali.rice.kns.web.struts.action.KualiInquiryAction.getRoleQualification(ActionForm, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 95 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to displayList in org.kuali.rice.kns.web.struts.action.KualiLookupAction.search(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 198 | Medium |
Dead store to refreshCaller in org.kuali.rice.kns.web.struts.action.KualiLookupAction.search(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 241 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to documentAuthorizer in org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.clearUnauthorizedNewFields(MaintenanceDocument) | STYLE | DLS_DEAD_LOCAL_STORE | 952 | Medium |
Dead store to newBo in org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.clearUnauthorizedNewFields(MaintenanceDocument) | STYLE | DLS_DEAD_LOCAL_STORE | 958 | Medium |
Dead store to maintenanceDocumentAuthorizer in org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.populateAuthorizationFields(KualiDocumentFormBase) | STYLE | DLS_DEAD_LOCAL_STORE | 994 | Medium |
Redundant nullcheck of collectionName, which is known to be non-null in org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.deleteLine(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 822 | Medium |
Method org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction.copyParametersToBO(Map, PersistableBusinessObject) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 366 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to displayList in org.kuali.rice.kns.web.struts.action.KualiMultipleValueLookupAction.search(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 93 | Medium |
Dead store to refreshCaller in org.kuali.rice.kns.web.struts.action.KualiMultipleValueLookupAction.search(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 137 | Medium |
Method org.kuali.rice.kns.web.struts.action.KualiMultipleValueLookupAction.getMaxRowsPerPage(MultipleValueLookupForm) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 612 | Medium |
Possible null pointer dereference of resultTable in org.kuali.rice.kns.web.struts.action.KualiMultipleValueLookupAction.performMultipleValueLookup(MultipleValueLookupForm, List, int, boolean) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 342 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kns.web.struts.form.InquiryForm defines non-transient non-serializable instance field inquirable | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.struts.form.KualiForm.getHeaderNavigationTabs() may expose internal representation by returning KualiForm.headerNavigationTabs | MALICIOUS_CODE | EI_EXPOSE_REP | 278 | Medium |
org.kuali.rice.kns.web.struts.form.KualiForm.setHeaderNavigationTabs(HeaderNavigation[]) may expose internal representation by storing an externally mutable object into KualiForm.headerNavigationTabs | MALICIOUS_CODE | EI_EXPOSE_REP2 | 287 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to docTypeName in org.kuali.rice.kns.web.struts.form.KualiMaintenanceForm.getAdditionalSectionsFile() | STYLE | DLS_DEAD_LOCAL_STORE | 453 | Medium |
Method org.kuali.rice.kns.web.struts.form.KualiMaintenanceForm.populate(HttpServletRequest) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 242 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to ddService in org.kuali.rice.kns.web.struts.form.LookupForm.populate(HttpServletRequest) | STYLE | DLS_DEAD_LOCAL_STORE | 147 | Medium |
org.kuali.rice.kns.web.struts.form.LookupForm.populate(HttpServletRequest) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 223 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kns.web.struts.form.MultipleValueLookupForm defines non-transient non-serializable instance field tableMetadata | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.web.struts.pojo.ArrayUtils.toObject(Object) invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) instead | PERFORMANCE | DM_NUMBER_CTOR | 69 | Medium |
Method org.kuali.rice.kns.web.struts.pojo.ArrayUtils.toObject(Object) invokes inefficient new Character(char) constructor; use Character.valueOf(char) instead | PERFORMANCE | DM_NUMBER_CTOR | 67 | Medium |
Method org.kuali.rice.kns.web.struts.pojo.ArrayUtils.toObject(Object) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 71 | Medium |
Method org.kuali.rice.kns.web.struts.pojo.ArrayUtils.toObject(Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 73 | Medium |
Method org.kuali.rice.kns.web.struts.pojo.ArrayUtils.toObject(Object) invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead | PERFORMANCE | DM_NUMBER_CTOR | 75 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.web.struts.pojo.PojoFormBase.populate(HttpServletRequest) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 151 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kns.web.ui.Field.getPropertyValues() may expose internal representation by returning Field.propertyValues | MALICIOUS_CODE | EI_EXPOSE_REP | 1625 | Medium |
org.kuali.rice.kns.web.ui.Field.setPropertyValues(String[]) may expose internal representation by storing an externally mutable object into Field.propertyValues | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1629 | Medium |
Method org.kuali.rice.kns.web.ui.Field.setFieldConversions(Map) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 810 | Medium |
Method org.kuali.rice.kns.web.ui.Field.setLookupParameters(Map) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 899 | Medium |
Method org.kuali.rice.kns.web.ui.Field.setFieldConversions(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 807 | Medium |
Method org.kuali.rice.kns.web.ui.Field.setLookupParameters(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 896 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of finder in org.kuali.rice.kns.web.ui.FieldBridge.lookupFinderValue(ControlDefinition, Object, KeyValuesFinder) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 222 | Medium |
Method org.kuali.rice.kns.web.ui.FieldBridge.getNewFormFields(CollectionDefinitionI, BusinessObject, Maintainable, List, Set, StringBuffer, String, boolean, int) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 416 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.web.ui.FormatAwareDecorator.createCollectionString(Object) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 75 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to row in org.kuali.rice.kns.web.ui.SectionBridge.toSection(Inquirable, InquirySectionDefinition, BusinessObject, InquiryRestrictions) | STYLE | DLS_DEAD_LOCAL_STORE | 101 | Medium |
Dead store to sectionRows in org.kuali.rice.kns.web.ui.SectionBridge.toSection(Inquirable, InquirySectionDefinition, BusinessObject, InquiryRestrictions) | STYLE | DLS_DEAD_LOCAL_STORE | 107 | Medium |
Method org.kuali.rice.kns.web.ui.SectionBridge.getContainerRows(Section, CollectionDefinitionI, BusinessObject, Maintainable, Maintainable, List, Set, StringBuffer, String, boolean, int, Inquirable) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 433 | Medium |
Nullcheck of o at line 248 of value previously dereferenced in org.kuali.rice.kns.web.ui.SectionBridge.toSection(MaintainableSectionDefinition, BusinessObject, Maintainable, Maintainable, String, List, Set) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 215 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.kns.workflow.attribute.DataDictionaryDocumentSearchCustomizer defines non-transient non-serializable instance field documentSearchGenerator | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to boEntry in org.kuali.rice.kns.workflow.attribute.DataDictionarySearchableAttribute.createFieldRowsForBusinessObject(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 436 | Medium |
Method org.kuali.rice.kns.workflow.attribute.DataDictionarySearchableAttribute.validateUserSearchInputs(Map, DocumentSearchContext) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 202 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to theEnd in org.kuali.rice.kns.workflow.attribute.KualiXmlAttributeHelper.getXPathTerms(Element) | STYLE | DLS_DEAD_LOCAL_STORE | 441 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.buildSearchableFixnumAttribute(String, Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 403 | Medium |
Method org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.copyQualifications(AttributeSet, AttributeSet) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 188 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl$RoutingAttributeTracker.checkPoint() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 593 | Medium |
Should org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl$RoutingAttributeTracker be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 570 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.cache.RiceCacheAdministratorImpl.loadCacheSettings() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 141 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Primitive value is boxed and then immediately unboxed in org.kuali.rice.ksb.cache.RiceDistributedCacheListener.initialize(Cache, Config) | PERFORMANCE | BX_BOXING_IMMEDIATELY_UNBOXED | 62 | Medium |
org.kuali.rice.ksb.cache.RiceDistributedCacheListener.initialize(Cache, Config) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 62 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.AsynchronousCall.getArguments() may expose internal representation by returning AsynchronousCall.arguments | MALICIOUS_CODE | EI_EXPOSE_REP | 56 | Medium |
org.kuali.rice.ksb.messaging.AsynchronousCall.getParamTypes() may expose internal representation by returning AsynchronousCall.paramTypes | MALICIOUS_CODE | EI_EXPOSE_REP | 60 | Medium |
new org.kuali.rice.ksb.messaging.AsynchronousCall(Class[], Object[], ServiceInfo, String, AsynchronousCallback, Serializable) may expose internal representation by storing an externally mutable object into AsynchronousCall.arguments | MALICIOUS_CODE | EI_EXPOSE_REP2 | 47 | Medium |
new org.kuali.rice.ksb.messaging.AsynchronousCall(Class[], Object[], ServiceInfo, String, AsynchronousCallback, Serializable) may expose internal representation by storing an externally mutable object into AsynchronousCall.paramTypes | MALICIOUS_CODE | EI_EXPOSE_REP2 | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.MessageServiceInvoker.run() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 72 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.PropertyConditionalKSBExporter.shouldRemoteThisService() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 58 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.RemotedServiceRegistryImpl.createServiceInfoAndServiceInfoCopy(ServiceDefinition) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 121 | Medium |
Inconsistent synchronization of org.kuali.rice.ksb.messaging.RemotedServiceRegistryImpl.serviceLocator; locked 66% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 424 | Medium |
Method org.kuali.rice.ksb.messaging.RemotedServiceRegistryImpl.getContents(String, boolean) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 391 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.ServiceDefinition.isSame(ServiceDefinition) invokes java.net.URL.equals(Object), which blocks to do domain name resolution | PERFORMANCE | DMI_BLOCKING_METHODS_ON_URL | 249 | High |
Method org.kuali.rice.ksb.messaging.ServiceDefinition.validate() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 223 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.config.KSBConfigurer$1.start() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 172 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.ksb.messaging.dao.impl.MessageQueueDAOOjbImpl.findByValues(Map, int) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 86 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.exceptionhandling.DefaultMessageExceptionHandler.getImmediateExceptionRouting() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 140 | Medium |
Method org.kuali.rice.ksb.messaging.exceptionhandling.DefaultMessageExceptionHandler.requeue(Throwable, PersistedMessage) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 90 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.quartz.KSBSchedulerFactoryBean.afterPropertiesSet() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 64 | Medium |
Unused field: org.kuali.rice.ksb.messaging.quartz.KSBSchedulerFactoryBean.transactionManager | PERFORMANCE | UUF_UNUSED_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.quartz.QuartzConfigPropertiesFactoryBean.createInstance() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 41 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.service.impl.MessageQueueServiceImpl.delete(PersistedMessage) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 43 | Medium |
org.kuali.rice.ksb.messaging.service.impl.MessageQueueServiceImpl.save(PersistedMessage) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 52 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.serviceconnectors.HttpInvokerConnector.configureDefaultHttpClientParams(HttpParams) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 136 | Medium |
Method org.kuali.rice.ksb.messaging.serviceconnectors.HttpInvokerConnector.configureDefaultHttpClientParams(HttpParams) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 129 | Medium |
Method org.kuali.rice.ksb.messaging.serviceconnectors.HttpInvokerConnector.initializeHttpClientParams() makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to server in org.kuali.rice.ksb.messaging.serviceexporters.RESTServiceExporter.publishService(ServiceDefinition, Object, String) | STYLE | DLS_DEAD_LOCAL_STORE | 102 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.serviceproxies.MessageSender.sendMessage(PersistedMessage) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 35 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field org.kuali.rice.ksb.messaging.serviceproxies.MessageSendingTransactionSynchronization.CALLED_TRANS_COMMITTED from instance method org.kuali.rice.ksb.messaging.serviceproxies.MessageSendingTransactionSynchronization.afterCompletion(int) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 53 | Medium |
Write to static field org.kuali.rice.ksb.messaging.serviceproxies.MessageSendingTransactionSynchronization.CALLED_TRANS_ROLLEDBACKED from instance method org.kuali.rice.ksb.messaging.serviceproxies.MessageSendingTransactionSynchronization.afterCompletion(int) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 56 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.serviceproxies.SynchronousServiceCallProxy.executeMessage(PersistedMessage) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 63 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.kuali.rice.ksb.messaging.servlet.CXFServletControllerAdapter.serviceInfo | PERFORMANCE | URF_UNREAD_FIELD | 42 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.messaging.threadpool.PriorityBlockingQueuePersistedMessageComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | 33 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to routeQueueId in org.kuali.rice.ksb.messaging.web.MessageQueueAction.save(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 77 | Medium |
Method org.kuali.rice.ksb.messaging.web.MessageQueueAction.quickRequeueMessage(PersistedMessage) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 205 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.ksb.messaging.web.ThreadPoolForm defines non-transient non-serializable instance field threadPool | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.kuali.rice.ksb.security.SignatureVerifyingInputStream(byte[], Signature, InputStream) may expose internal representation by storing an externally mutable object into SignatureVerifyingInputStream.digitalSignature | MALICIOUS_CODE | EI_EXPOSE_REP2 | 40 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.security.admin.KeyStoreEntryDataContainer.getCreateDate() may expose internal representation by returning KeyStoreEntryDataContainer.createDate | MALICIOUS_CODE | EI_EXPOSE_REP | 82 | Medium |
new org.kuali.rice.ksb.security.admin.KeyStoreEntryDataContainer(String, Date) may expose internal representation by storing an externally mutable object into KeyStoreEntryDataContainer.createDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 50 | Medium |
org.kuali.rice.ksb.security.admin.KeyStoreEntryDataContainer.setCreateDate(Date) may expose internal representation by storing an externally mutable object into KeyStoreEntryDataContainer.createDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 89 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.security.admin.service.impl.JavaSecurityManagementServiceImpl.loadKeyStore() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 111 | Medium |
Unread field: org.kuali.rice.ksb.security.admin.service.impl.JavaSecurityManagementServiceImpl.CLIENT_CERT_EXPIRATION_DAYS; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to form in org.kuali.rice.ksb.security.admin.web.JavaSecurityManagementAction.clear(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 83 | High |
Dead store to form in org.kuali.rice.ksb.security.admin.web.JavaSecurityManagementAction.generateClientKeyStore(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 123 | High |
Dead store to data in org.kuali.rice.ksb.security.admin.web.JavaSecurityManagementAction.generateClientKeyStore(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 102 | Medium |
The parameter form to org.kuali.rice.ksb.security.admin.web.JavaSecurityManagementAction.clear(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) is dead upon entry but overwritten | CORRECTNESS | IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN | 83 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.ksb.util.KSBConstants.<static initializer>() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 67 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.ksb.util.KSBConstants$Config be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.kuali.rice.ksb.util.KSBConstants$ServiceNames be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 77 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.test.BaselineTestCase.dirty should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 75 | Medium |
Write to static field org.kuali.rice.test.BaselineTestCase.dirty from instance method org.kuali.rice.test.BaselineTestCase.setUp() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 115 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field org.kuali.rice.test.BaselineTestCase.dirty from instance method org.kuali.rice.test.BaselineTestCase$1.stop() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 155 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.test.ClearDatabaseLifecycle$1.doInConnection(Connection) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 97 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to portConfigParam in org.kuali.rice.test.JettyServerTestCase.constructJettyServerLifecycle(JettyServer) | STYLE | DLS_DEAD_LOCAL_STORE | 88 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.test.RiceInternalSuiteDataTestCase.loadSuiteTestData() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 37 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.test.RiceTestCase.SUITE_LIFE_CYCLES_FAILED should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 60 | Medium |
org.kuali.rice.test.RiceTestCase.SUITE_LIFE_CYCLES_RAN should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 59 | Medium |
org.kuali.rice.test.RiceTestCase.failedSuiteTestName should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.test.SQLDataLoader.getContentsAsString(String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 99 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in org.kuali.rice.test.runners.RiceUnitTestClassRunner.setTestName(Object, Method) | STYLE | REC_CATCH_EXCEPTION | 91 | Medium |