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 |
---|---|---|---|---|
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 | 260 | Medium |
org.kuali.rice.ken.bo.NotificationChannel defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 260 | High |
org.kuali.rice.ken.bo.NotificationChannel.equals(Object) does not check for null argument | BAD_PRACTICE | NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT | 260 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to lockedDeliveries in org.kuali.rice.ken.dao.impl.NotificationMessegeDeliveryDaoJpa.getLockedDeliveries(Class, GenericDao) | STYLE | DLS_DEAD_LOCAL_STORE | 101 | Medium |
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 | 77 | Medium |
org.kuali.rice.ken.service.impl.NotificationChannelServiceImpl.getSubscribableChannels() invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 68 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ken.service.impl.NotificationContentTypeServiceImpl.getAllCurrentContentTypes() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 133 | Medium |
org.kuali.rice.ken.service.impl.NotificationContentTypeServiceImpl.getNotificationContentType(String) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 61 | 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 | 563 | 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 | 573 | 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 | 71 | 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 | 295 | Medium |
org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 295 | 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 | 311 | 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 | 281 | Medium |
org.kuali.rice.ken.util.Util.cloneNotificationWithoutObjectReferences(Notification) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 278 | Medium |
org.kuali.rice.ken.util.Util.transformContent(Notification) invokes inefficient new String() constructor | PERFORMANCE | DM_STRING_VOID_CTOR | 173 | 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 |
---|---|---|---|---|
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 | 446 | 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 | 551 | 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 | 263 | Medium |
Possible null pointer dereference of docType in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 263 | Medium |
Possible null pointer dereference of docType in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 263 | Medium |
Nullcheck of docType at line 267 of value previously dereferenced in org.kuali.rice.kew.actionlist.service.impl.ActionListServiceImpl.validateActionItem(ActionItem) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 263 | 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 | 801 | 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 | 285 | 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 | 289 | 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 | 396 | 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 | 526 | High |
Dead store to matchedArs in org.kuali.rice.kew.actionrequest.service.impl.ActionRequestServiceImpl.findAllValidRequests(String, Collection, String) | STYLE | DLS_DEAD_LOCAL_STORE | 524 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of systemUserWorkgroup at line 182 of value previously dereferenced in org.kuali.rice.kew.actions.DisapproveAction.generateNotifications(RouteNodeInstance) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 182 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to actionTaken in org.kuali.rice.kew.actions.LogDocumentActionAction.recordAction() | STYLE | DLS_DEAD_LOCAL_STORE | 79 | 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 | 47 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Impossible cast from org.kuali.rice.core.framework.persistence.jpa.criteria.QueryByCriteria to java.util.List in org.kuali.rice.kew.actiontaken.dao.impl.ActionTakenDAOJpaImpl.findByDocumentIdIgnoreCurrentInd(String) | CORRECTNESS | BC_IMPOSSIBLE_CAST | 95 | 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 | 48 | 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 | 45 | 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 | 644 | High |
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 | 501 | Medium |
org.kuali.rice.kew.docsearch.DocumentLookupCriteriaProcessorKEWAdapter stored into non-transient field DocSearchCriteriaDTOLookupableHelperServiceImpl.processor | BAD_PRACTICE | SE_BAD_FIELD_STORE | 582 | 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 | 209 | 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 | 215 | 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 | 221 | Medium |
Dead store to pkNames in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 144 | Medium |
Dead store to returnKeys in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 143 | Medium |
Dead store to user in org.kuali.rice.kew.bo.lookup.DocumentRouteHeaderValueLookupableHelperServiceImpl.performLookup(LookupForm, Collection, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 145 | 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 | 378 | 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 | 297 | 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 | 304 | 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 | 129 | 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 | 70 | 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 | 205 | 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 | 241 | 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 | 234 | 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 | 159 | 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 | 50 | 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 | 642 | Medium |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.getDocRouteStatusSql(String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 1693 | Medium |
Method org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator.getViewerSql(String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 1513 | 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 | 97 | 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 | 105 | 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 | 113 | 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 | 121 | 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 | 129 | 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 | 453 | 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 | 624 | 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 |
---|---|---|---|---|
Method org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.saveSearch(String, DocSearchCriteriaDTO) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 527 | Medium |
Private method org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.validateNetworkId(List) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 353 | Medium |
Private method org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl.validateNumber(List) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 395 | 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 | 572 | 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 | 564 | Medium |
Method org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute.getSearchContent(DocumentSearchContext) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 102 | Medium |
Private method org.kuali.rice.kew.docsearch.xml.StandardGenericXMLSearchableAttribute.getBooleanWithPotentialOverrides(String, NamedNodeMap, NamedNodeMap, NamedNodeMap) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 547 | 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 | 151 | 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 | 159 | Medium |
org.kuali.rice.kew.doctype.DocumentTypePolicy.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 155 | 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 | 267 | 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 | 124 | 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.service.impl.DocumentSecurityServiceImpl.isAuthenticatedByPermission(String, String, String, Map, Map, SecuritySession) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 228 | 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 | 238 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to extensions in org.kuali.rice.kew.document.RoutingRuleMaintainableBusRule.setRuleAttributeErrors(RuleBaseValues) | STYLE | DLS_DEAD_LOCAL_STORE | 240 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to ruleTemplate in org.kuali.rice.kew.documentoperation.web.DocumentOperationAction.refresh(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 629 | Medium |
Method org.kuali.rice.kew.documentoperation.web.DocumentOperationAction.getDocument(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 128 | 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 | 1461 | High |
Method org.kuali.rice.kew.dto.DTOConverter.createDocumentContentSection(Document, Element, List, String, String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 550 | Medium |
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 | 407 | 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 | 1456 | 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 | 146 | 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 | 262 | 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 | 50 | 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 | 69 | 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 | 78 | 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 | 100 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to processContext in org.kuali.rice.kew.engine.StandardWorkflowEngine.process(String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 137 | 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 | 345 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to documentId in org.kuali.rice.kew.engine.node.FYIByNetworkId.process(RouteContext, RouteHelper) | STYLE | DLS_DEAD_LOCAL_STORE | 52 | 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 | 181 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.engine.node.Process.getVersionNumber() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 132 | 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 | 212 | 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 | 158 | 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 | 160 | 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 | 196 | Medium |
Nullcheck of requestNodeStop at line 247 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 | 247 | 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 | 317 | 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 | 399 | 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 | 391 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to processContext in org.kuali.rice.kew.engine.simulation.SimulationEngine.process(String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 135 | Medium |
Method org.kuali.rice.kew.engine.simulation.SimulationEngine.createSimulationDocument(String, SimulationCriteria, RouteContext) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 320 | 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 | 108 | 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.impl.action.WorkflowDocumentActionsServiceImpl.determineRequestedActionsInternal(DocumentRouteHeaderValue, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 319 | 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 | 552 | 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 | 531 | 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 | 151 | Medium |
Method call in org.kuali.rice.kew.messaging.exceptionhandling.ExceptionRoutingServiceImpl.placeInExceptionRouting(String, PersistedMessageBO, String) passes null for nonnull parameter of placeInExceptionRouting(String, RouteNodeInstance, PersistedMessageBO, RouteContext, DocumentRouteHeaderValue, boolean) | CORRECTNESS | NP_NULL_PARAM_DEREF | 64 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.notes.Note.getVersionNumber() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 260 | 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 | 120 | 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 | 212 | Medium |
org.kuali.rice.kew.notes.web.NoteAction.retrieveNoteList(HttpServletRequest, NoteForm) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 241 | 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 | 116 | 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 | 259 | 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 | 235 | 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 | 282 | Medium |
Nullcheck of routeHeader at line 223 of value previously dereferenced in org.kuali.rice.kew.notes.web.NoteAction.retrieveNoteList(HttpServletRequest, NoteForm) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 223 | 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 | 141 | 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 | 96 | 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 | 96 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
A prepared statement is generated from a nonconstant String at org.kuali.rice.kew.quicklinks.dao.impl.QuickLinksDAOOjbImpl$1.doInPersistenceBroker(PersistenceBroker) | SECURITY | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 63 | High |
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 | 155 | 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 | 105 | 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 | 227 | 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 | 159 | 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 | 691 | High |
Method org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue.getCurrentRouteLevelName() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 306 | Medium |
Method org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue.applyDocumentUpdate(DocumentUpdate) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 821 | Medium |
Method org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue.from(Document) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 1206 | 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 | 215 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findByDocTypeAndAppId(String, String) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 395 | Medium |
org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findByDocTypeAndAppId(String, String) may fail to close PreparedStatement | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE | 389 | Medium |
Method org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findPendingByResponsibilityIds(Set) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 214 | Medium |
Method org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOOjbImpl.findPendingByResponsibilityIds(Set) passes a nonconstant String to an execute method on an SQL statement | SECURITY | SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE | 225 | High |
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 | 450 | 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 | 208 | Medium |
Private method org.kuali.rice.kew.rule.FlexRM.makeActionRequests(ActionRequestFactory, RouteContext, RuleBaseValues, DocumentRouteHeaderValue, ActionRequestValue, RuleDelegation) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 246 | 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 |
---|---|---|---|---|
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.RuleBaseValues.getRuleExtensionValueLabels() uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 185 | 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 | 269 | Medium |
Call to equals() comparing different types in org.kuali.rice.kew.rule.RuleBaseValues.getResponsibility(Long) | CORRECTNESS | EC_UNRELATED_TYPES | 344 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.RuleDelegation.copy(boolean) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 84 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.RuleExpressionDef defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 100 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.RuleExtension defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 158 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.RuleExtensionValue defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 118 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of ruleRoutingElement at line 169 of value previously dereferenced in org.kuali.rice.kew.rule.RuleRoutingAttribute.parseDocContent(DocumentContent) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 169 | 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 |
---|---|---|---|---|
org.kuali.rice.kew.rule.bo.RuleTemplate.DEFAULT_OPTION_KEYS should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kew.rule.bo.RuleTemplateAttribute defines compareTo(RuleTemplateAttribute) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 94 | 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 | 126 | 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 | 124 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Load of known null value in org.kuali.rice.kew.rule.service.impl.RuleDelegationServiceImpl.findByResponsibilityId(String, boolean) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 200 | 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 | 1224 | Medium |
Should org.kuali.rice.kew.rule.service.impl.RuleServiceImpl$RuleDelegationSorter be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 1219 | 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.populateActionRequestsWithRouteLevelInformationAndIterateMagicCounter(RouteNode, List, long) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 295 | 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 | 277 | 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 | 148 | Medium |
org.kuali.rice.kew.rule.web.WebRuleResponsibility doesn't override org.kuali.rice.kew.rule.RuleResponsibility.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 53 | 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 | 457 | 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 | 313 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of map at line 502 of value previously dereferenced in org.kuali.rice.kew.rule.xmlrouting.StandardGenericXMLRuleAttribute.getDocContent() | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 502 | Medium |
Method org.kuali.rice.kew.rule.xmlrouting.StandardGenericXMLRuleAttribute.getDocContent() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 493 | 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 | 167 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to principalId in org.kuali.rice.kew.service.impl.WorkflowUtilityWebServiceImpl.getDocumentStatusTransitionHistory(String) | STYLE | DLS_DEAD_LOCAL_STORE | 1101 | 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 | 681 | 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 | 706 | 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 | 95 | 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 | 59 | 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 | 153 | 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 | 128 | 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 | 75 | 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 | 248 | Medium |
org.kuali.rice.kew.stats.web.StatsForm.getEndingDate() may expose internal representation by returning StatsForm.endingDate | MALICIOUS_CODE | EI_EXPOSE_REP | 256 | 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 | 252 | 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 | 260 | 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 | 221 | 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 | 101 | 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 | 124 | 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 |
---|---|---|---|---|
Unread field: org.kuali.rice.kew.web.UserLoginFilter.filterConfig | PERFORMANCE | URF_UNREAD_FIELD | 72 | 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 | 143 | 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 | 951 | 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 | 234 | 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 | 1454 | 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 | 1428 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to kimTypeAttributes in org.kuali.rice.kew.xml.GroupXmlParser.parseGroup(Element) | STYLE | DLS_DEAD_LOCAL_STORE | 148 | 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 | 504 | 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 | 315 | 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 | 381 | 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 | 344 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kew.xml.UserXmlParser.constructEntity(Element) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 138 | 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 | 512 | Medium |
Should org.kuali.rice.kew.xml.export.DocumentTypeXmlExporter$DocumentTypeParentComparator be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 497 | 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 | 521 | 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 | 87 | 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 | 136 | 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 |
---|---|---|---|---|
Method org.kuali.rice.kim.bo.impl.GenericPermission.setDetailValues(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 126 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.bo.impl.PersonImpl.identityService 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 |
---|---|---|---|---|
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 |
---|---|---|---|---|
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.krad.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 106 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.krad.datadictionary.AttributeDefinition to org.kuali.rice.krad.datadictionary.KimAttributeDefinition in org.kuali.rice.kim.document.IdentityManagementKimDocument.getKimAttributeDefnId(AttributeDefinition) | STYLE | BC_UNCONFIRMED_CAST | 154 | Medium |
org.kuali.rice.kim.document.IdentityManagementKimDocument is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 56 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.document.rule.AttributeValidationHelper.convertErrors(String, Map, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 157 | Medium |
Method org.kuali.rice.kim.document.rule.AttributeValidationHelper.convertErrorsForMappedFields(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 143 | Medium |
Method org.kuali.rice.kim.document.rule.AttributeValidationHelper.moveValidationErrorsToErrorMap(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 124 | 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 | 185 | 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 | 203 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.impl.responsibility.ResponsibilityInquirableImpl.buildInquirableLink(Object, String, Inquiry) uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 63 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten field responsibilityService in org.kuali.rice.kim.impl.responsibility.ResponsibilityInternalServiceImpl.areActionsAtAssignmentLevelById(String) | CORRECTNESS | NP_UNWRITTEN_FIELD | 153 | Medium |
Unwritten field: org.kuali.rice.kim.impl.responsibility.ResponsibilityInternalServiceImpl.responsibilityService | CORRECTNESS | UWF_UNWRITTEN_FIELD | 153 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.impl.responsibility.ResponsibilityLookupableHelperServiceImpl.getMemberSearchResults(Map, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 105 | Medium |
Synchronization performed on java.util.concurrent.ConcurrentMap in org.kuali.rice.kim.impl.responsibility.ResponsibilityLookupableHelperServiceImpl.getResponsibilitiesWithResponsibilitySearchCriteria(Map, boolean) | MT_CORRECTNESS | JLM_JSR166_UTILCONCURRENT_MONITORENTER | 216 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.krad.datadictionary.AttributeDefinition to org.kuali.rice.krad.datadictionary.KimAttributeDefinition in org.kuali.rice.kim.impl.type.KimTypeAttributesHelper.getKimAttributeDefnId(AttributeDefinition) | STYLE | BC_UNCONFIRMED_CAST | 79 | Medium |
org.kuali.rice.kim.impl.type.KimTypeAttributesHelper is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 47 | Medium |
Unwritten field: org.kuali.rice.kim.impl.type.KimTypeAttributesHelper.attributes | CORRECTNESS | UWF_UNWRITTEN_FIELD | 55 | Medium |
Method org.kuali.rice.kim.impl.type.KimTypeAttributesHelper.getAttributeValue(Map, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 126 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.kim.impl.type.KimTypeQualifierResolver.typeServices isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 62 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return false in org.kuali.rice.kim.impl.type.KimTypeServiceBase.extractErrorsFromGlobalVariablesErrorMap(String), since a org.springframework.util.AutoPopulatingList can't be a String | CORRECTNESS | BC_IMPOSSIBLE_INSTANCEOF | 517 | Medium |
instanceof will always return true in org.kuali.rice.kim.impl.type.KimTypeServiceBase.extractErrorsFromGlobalVariablesErrorMap(String), since all org.springframework.util.AutoPopulatingList are instances of java.util.List | STYLE | BC_VACUOUS_INSTANCEOF | 520 | Medium |
Method org.kuali.rice.kim.impl.type.KimTypeServiceBase.extractErrorsFromGlobalVariablesErrorMap(String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 526 | Medium |
Method org.kuali.rice.kim.impl.type.KimTypeServiceBase.areAllAttributeValuesEmpty(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 900 | Medium |
Method org.kuali.rice.kim.impl.type.KimTypeServiceBase.getAttributeValue(Map, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 915 | Medium |
Method org.kuali.rice.kim.impl.type.KimTypeServiceBase.validateAttributes(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 185 | Medium |
Method org.kuali.rice.kim.impl.type.KimTypeServiceBase.validateReferencesExistAndActive(KimType, Map, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 269 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.inquiry.PermissionInquirableImpl.buildInquirableLink(Object, String, Inquiry) uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 68 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.lookup.GroupLookupableHelperServiceImpl.getSearchResults(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 139 | 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 |
Synchronization performed on java.util.concurrent.ConcurrentMap in org.kuali.rice.kim.lookup.PermissionLookupableHelperServiceImpl.getPermissionsWithPermissionSearchCriteria(Map, boolean) | MT_CORRECTNESS | JLM_JSR166_UTILCONCURRENT_MONITORENTER | 235 | 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.RoleLookupableHelperServiceImpl.getSearchResultsHelper(Map, boolean) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 243 | 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 | 300 | Medium |
Redundant nullcheck of groups which is known to be null in org.kuali.rice.kim.lookup.RoleMemberLookupableHelperServiceImpl.buildRoleSearchCriteria(Map) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 186 | 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 | 128 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.KimModuleService.getExternalizableBusinessObjectsList(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 124 | Medium |
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 | 211 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.PermissionServiceImpl.getMatchingPermissions(List, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 290 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kim.service.impl.PermissionUpdateServiceImpl.savePermission(String, String, String, String, String, boolean, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 90 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.kim.service.impl.PersonServiceImpl.convertEntityToPerson(EntityDefault, Principal), since all RuntimeException are instances of RuntimeException | STYLE | BC_VACUOUS_INSTANCEOF | 190 | 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 | 337 | Medium |
Synchronization performed on java.util.concurrent.ConcurrentMap in org.kuali.rice.kim.service.impl.PersonServiceImpl.addPersonToCache(Person) | MT_CORRECTNESS | JLM_JSR166_UTILCONCURRENT_MONITORENTER | 211 | 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 | 429 | Medium |
Method org.kuali.rice.kim.service.impl.PersonServiceImpl.findPeopleInternal(Map, boolean) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 377 | 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 | 640 | 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 | 705 | 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 | 2019 | High |
Dead store to pndMember in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadGroupMembers(IdentityManagementGroupDocument, List) | STYLE | DLS_DEAD_LOCAL_STORE | 2537 | Medium |
Dead store to pndGroupQualifier in org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadGroupQualifiers(IdentityManagementGroupDocument, Map) | STYLE | DLS_DEAD_LOCAL_STORE | 2563 | 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 | 276 | 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 | 478 | 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 | 1968 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.loadGroupQualifiers(IdentityManagementGroupDocument, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 2570 | 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 | 1868 | Medium |
Method org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.populateDocRoleQualifier(String, List, AttributeDefinitionMap) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 741 | 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 | 2523 | 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 | 218 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method call in org.kuali.rice.kim.web.struts.action.IdentityManagementRoleDocumentAction.addResponsibility(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) passes null for nonnull parameter of org.kuali.rice.kim.document.IdentityManagementRoleDocument.addResponsibility(KimDocumentRoleResponsibility) | CORRECTNESS | NP_NULL_PARAM_DEREF | 268 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.kns.service.impl.BusinessObjectAuthorizationServiceImpl.getButtonFieldPermissionDetails(Object, String) uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 623 | Medium |
Unused field: org.kuali.rice.kns.service.impl.BusinessObjectAuthorizationServiceImpl.dataDictionaryService | PERFORMANCE | UUF_UNUSED_FIELD | Medium | |
Unused field: org.kuali.rice.kns.service.impl.BusinessObjectAuthorizationServiceImpl.documentHelperService | PERFORMANCE | UUF_UNUSED_FIELD | 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 | 361 | Medium |
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 | 400 | Medium |
org.kuali.rice.kns.service.impl.MaintenanceDocumentDictionaryServiceImpl.LOG isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 50 | High |
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 | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused field: org.kuali.rice.krad.dao.impl.BusinessObjectDaoJpa.ojbCollectionHelper | PERFORMANCE | UUF_UNUSED_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.dao.impl.LookupDaoJpa.executeSearch(Class, Criteria, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 202 | Medium |
Comparison of String parameter using == or != in org.kuali.rice.krad.dao.impl.LookupDaoJpa.addLogicalOperatorCriteria(String, String, Class, boolean, Criteria, String) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 581 | Medium |
Potentially dangerous use of non-short-circuit logic in org.kuali.rice.krad.dao.impl.LookupDaoJpa.findObjectByMap(Object, Map) | STYLE | NS_DANGEROUS_NON_SHORT_CIRCUIT | 351 | High |
Method org.kuali.rice.krad.dao.impl.LookupDaoJpa.addInactivateableFromToCurrentCriteria(Object, String, Criteria, Map) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 534 | Medium |
Method org.kuali.rice.krad.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.krad.dao.impl.LookupDaoJpa.findObjectByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 347 | Medium |
Method org.kuali.rice.krad.dao.impl.LookupDaoJpa.getCollectionCriteriaFromMap(PersistableBusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 134 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to searchResults in org.kuali.rice.krad.dao.impl.LookupDaoOjb.executeSearch(Class, Criteria, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 150 | Medium |
Method org.kuali.rice.krad.dao.impl.LookupDaoOjb.executeSearch(Class, Criteria, boolean) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 156 | Medium |
Method org.kuali.rice.krad.dao.impl.LookupDaoOjb.findCountByMap(Object, Map) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 253 | Medium |
Potentially dangerous use of non-short-circuit logic in org.kuali.rice.krad.dao.impl.LookupDaoOjb.findObjectByMap(Object, Map) | STYLE | NS_DANGEROUS_NON_SHORT_CIRCUIT | 272 | High |
Method org.kuali.rice.krad.dao.impl.LookupDaoOjb.findCountByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 225 | Medium |
Method org.kuali.rice.krad.dao.impl.LookupDaoOjb.findObjectByMap(Object, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 268 | Medium |
Method org.kuali.rice.krad.dao.impl.LookupDaoOjb.getCollectionCriteriaFromMap(BusinessObject, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 89 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to START_INDEX in org.kuali.rice.krad.dao.proxy.DocumentHeaderDaoProxy.getDao(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 28 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to START_INDEX in org.kuali.rice.krad.dao.proxy.MaintenanceDocumentDaoProxy.getDao(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to START_INDEX in org.kuali.rice.krad.dao.proxy.NoteDaoProxy.getDao(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to START_INDEX in org.kuali.rice.krad.dao.proxy.PersistedLookupMetadataDaoProxy.getDao(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to entityManager in org.kuali.rice.krad.dao.proxy.PersistenceDaoProxy.getDao(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 59 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.krad.document.authorization.MaintenanceDocumentAuthorizerBase.documentDictionaryService should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.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.krad.service.impl.AttachmentServiceImpl.deleteAttachmentContents(Attachment) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 166 | Medium |
org.kuali.rice.krad.service.impl.AttachmentServiceImpl.deletePendingAttachmentsModifiedBefore(long) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 246 | Medium |
org.kuali.rice.krad.service.impl.AttachmentServiceImpl.moveAttachmentFromPending(Attachment, String) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 155 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to maintenanceDocumentEntry in org.kuali.rice.krad.service.impl.BusinessObjectSerializerServiceImpl.getPropertySerizabilityEvaluator(Object) | STYLE | DLS_DEAD_LOCAL_STORE | 60 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible doublecheck on org.kuali.rice.krad.service.impl.BusinessObjectServiceImpl.illegalBusinessObjectsForSaveInitialized in org.kuali.rice.krad.service.impl.BusinessObjectServiceImpl.isBusinessObjectAllowedForSave(PersistableBusinessObject) | MT_CORRECTNESS | DC_DOUBLECHECK | 124 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.service.impl.DataObjectMetaDataServiceImpl.equalsByPrimaryKeys(Object, Object) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 123 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.service.impl.DictionaryValidationServiceImpl.validateBusinessObjectsFromDescriptors(Object, PropertyDescriptor[], int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 398 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of org.kuali.rice.krad.service.impl.DocumentServiceImpl.workflowDocumentService; locked 66% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 1151 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.service.impl.InactivateableFromToServiceImpl.buildGroupByValueString(BusinessObject, List) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 195 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.kuali.rice.krad.service.impl.InactivationBlockingDisplayServiceImpl.persistenceService | PERFORMANCE | URF_UNREAD_FIELD | 135 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of exceptionIncident in org.kuali.rice.krad.service.impl.KualiExceptionIncidentServiceImpl.report(KualiExceptionIncident) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 189 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to user in org.kuali.rice.krad.service.impl.MaintenanceDocumentServiceImpl.clearUnauthorizedNewFields(MaintenanceDocument) | STYLE | DLS_DEAD_LOCAL_STORE | 299 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.service.impl.ModuleServiceBase.getExternalizableBusinessObjectLookupUrl(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 231 | Medium |
Method org.kuali.rice.krad.service.impl.ModuleServiceBase.getUrlParameters(String, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 192 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.krad.service.impl.PersistenceStructureServiceJpaImpl.listCollectionObjectTypes(PersistableBusinessObject), since all org.kuali.rice.krad.bo.PersistableBusinessObject are instances of org.kuali.rice.krad.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 606 | Medium |
instanceof will always return true in org.kuali.rice.krad.service.impl.PersistenceStructureServiceJpaImpl.listReferenceObjectFields(PersistableBusinessObject), since all org.kuali.rice.krad.bo.PersistableBusinessObject are instances of org.kuali.rice.krad.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 621 | Medium |
org.kuali.rice.krad.service.impl.PersistenceStructureServiceJpaImpl.referenceConversionMap isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 59 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true in org.kuali.rice.krad.service.impl.PersistenceStructureServiceOjbImpl.listCollectionObjectTypes(PersistableBusinessObject), since all org.kuali.rice.krad.bo.PersistableBusinessObject are instances of org.kuali.rice.krad.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 648 | Medium |
instanceof will always return true in org.kuali.rice.krad.service.impl.PersistenceStructureServiceOjbImpl.listReferenceObjectFields(PersistableBusinessObject), since all org.kuali.rice.krad.bo.PersistableBusinessObject are instances of org.kuali.rice.krad.bo.PersistableBusinessObject | STYLE | BC_VACUOUS_INSTANCEOF | 663 | Medium |
org.kuali.rice.krad.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.krad.service.impl.PostProcessorServiceImpl.doActionTaken(ActionTakenEventDTO) | CORRECTNESS | EC_UNRELATED_TYPES | 143 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to caseInsensitive in org.kuali.rice.krad.service.impl.PredicateFactoryLookup.createFromComplexCriteriaValue(Class, String, String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 183 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Synchronization performed on java.util.concurrent.ConcurrentMap in org.kuali.rice.krad.service.impl.RiceApplicationConfigurationMediationServiceImpl.getConfigurationParameter(String, String) | MT_CORRECTNESS | JLM_JSR166_UTILCONCURRENT_MONITORENTER | 75 | Medium |
Synchronization performed on java.util.concurrent.ConcurrentMap in org.kuali.rice.krad.service.impl.RiceApplicationConfigurationMediationServiceImpl.getNonDatabaseComponents() | MT_CORRECTNESS | JLM_JSR166_UTILCONCURRENT_MONITORENTER | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to key in org.kuali.rice.krad.service.impl.SessionDocumentServiceImpl.setDocumentForm(DocumentFormBase, UserSession, String) | STYLE | DLS_DEAD_LOCAL_STORE | 214 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of replacers in org.kuali.rice.krad.uif.service.impl.ExpressionEvaluatorServiceImpl.evaluatePropertyReplacers(Object, Object, Map) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 148 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.krad.uif.container.View to org.kuali.rice.krad.uif.container.InquiryView in org.kuali.rice.krad.uif.service.impl.InquiryViewTypeServiceImpl.getParametersFromView(View) | STYLE | BC_UNCONFIRMED_CAST | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.krad.uif.container.View to org.kuali.rice.krad.uif.container.LookupView in org.kuali.rice.krad.uif.service.impl.LookupViewTypeServiceImpl.getParametersFromView(View) | STYLE | BC_UNCONFIRMED_CAST | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unchecked/unconfirmed cast from org.kuali.rice.krad.uif.container.View to org.kuali.rice.krad.uif.container.MaintenanceView in org.kuali.rice.krad.uif.service.impl.MaintenanceViewTypeServiceImpl.getParametersFromView(View) | STYLE | BC_UNCONFIRMED_CAST | 61 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.kuali.rice.krad.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.krad.workflow.attribute.DataDictionarySearchableAttribute.createFieldRowsForBusinessObject(Class) | STYLE | DLS_DEAD_LOCAL_STORE | 440 | Medium |
Method org.kuali.rice.krad.workflow.attribute.DataDictionarySearchableAttribute.validateUserSearchInputs(Map, DocumentSearchContext) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 207 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to theEnd in org.kuali.rice.krad.workflow.attribute.KualiXmlAttributeHelper.getXPathTerms(Element) | STYLE | DLS_DEAD_LOCAL_STORE | 431 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.buildSearchableFixnumAttribute(String, Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 319 | Medium |
Method org.kuali.rice.krad.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.copyQualifications(Map, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 186 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.krad.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl$RoutingAttributeTracker.checkPoint() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 506 | Medium |
Should org.kuali.rice.krad.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl$RoutingAttributeTracker be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 483 | 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 | 145 | 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 | 65 | Medium |
org.kuali.rice.ksb.cache.RiceDistributedCacheListener.initialize(Cache, Config) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 65 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.kuali.rice.ksb.impl.registry.ServiceDescriptorBo is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 60 | 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 | 77 | 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 | 87 | 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 | 143 | Medium |
Method org.kuali.rice.ksb.messaging.exceptionhandling.DefaultMessageExceptionHandler.requeue(Throwable, PersistedMessageBO) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 93 | 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 | 68 | 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.serviceconnectors.HttpInvokerConnector.configureDefaultHttpClientParams(HttpParams) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 139 | 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 | 132 | 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 | 118 | 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 |
---|---|---|---|---|
Class org.kuali.rice.ksb.messaging.servlet.KSBDispatcherServlet defines non-transient non-serializable instance field cxfServletController | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class org.kuali.rice.ksb.messaging.servlet.KSBDispatcherServlet defines non-transient non-serializable instance field httpInvokerHandler | BAD_PRACTICE | SE_BAD_FIELD | 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 | 32 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.kuali.rice.ksb.messaging.web.MessageQueueAction.quickRequeueMessage(PersistedMessageBO) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 205 | Medium |
Call to equals() comparing different types in org.kuali.rice.ksb.messaging.web.MessageQueueAction.establishRequiredState(HttpServletRequest, ActionForm) | CORRECTNESS | EC_UNRELATED_TYPES | 338 | High |
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 |
---|---|---|---|---|
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 | 58 | 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 | 81 | High |
Dead store to form in org.kuali.rice.ksb.security.admin.web.JavaSecurityManagementAction.generateClientKeyStore(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 121 | High |
Dead store to data in org.kuali.rice.ksb.security.admin.web.JavaSecurityManagementAction.generateClientKeyStore(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) | STYLE | DLS_DEAD_LOCAL_STORE | 100 | 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 | 81 | 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 | 71 | Medium |