SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.6

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
64 87 0 0

Files

Class Bugs
org.dynamoframework.ApplicationContextProvider 1
org.dynamoframework.configuration.DynamoConfigurationProperties$DefaultConfigurationProperties 4
org.dynamoframework.configuration.DynamoPropertiesHolder 1
org.dynamoframework.dao.impl.DefaultDaoImpl 2
org.dynamoframework.dao.impl.JpaQueryBuilder 2
org.dynamoframework.domain.comparator.AttributeComparator 1
org.dynamoframework.domain.comparator.IdComparator 1
org.dynamoframework.domain.model.impl.AttributeModelImpl 22
org.dynamoframework.domain.model.impl.EntityModelActionImpl 7
org.dynamoframework.domain.model.impl.EntityModelImpl 20
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder 11
org.dynamoframework.domain.query.FixedDataSetIterator 1
org.dynamoframework.domain.query.PagingDataSetIterator 1
org.dynamoframework.filter.AbstractJunctionFilter 1
org.dynamoframework.filter.Compare 1
org.dynamoframework.filter.FlexibleFilterDefinition 1
org.dynamoframework.filter.FlexibleFilterDefinition$FlexibleFilterDefinitionBuilder 1
org.dynamoframework.filter.In 2
org.dynamoframework.service.impl.DefaultServiceImpl 4
org.dynamoframework.service.impl.EntityScanner 3

org.dynamoframework.ApplicationContextProvider

Bug Category Details Line Priority
Write to static field org.dynamoframework.ApplicationContextProvider.applicationContext from instance method org.dynamoframework.ApplicationContextProvider.setApplicationContext(ApplicationContext) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 39 High

org.dynamoframework.configuration.DynamoConfigurationProperties$DefaultConfigurationProperties

Bug Category Details Line Priority
org.dynamoframework.configuration.DynamoConfigurationProperties$DefaultConfigurationProperties.getFalseRepresentations() may expose internal representation by returning DynamoConfigurationProperties$DefaultConfigurationProperties.falseRepresentations MALICIOUS_CODE EI_EXPOSE_REP 102 Medium
org.dynamoframework.configuration.DynamoConfigurationProperties$DefaultConfigurationProperties.getTrueRepresentations() may expose internal representation by returning DynamoConfigurationProperties$DefaultConfigurationProperties.trueRepresentations MALICIOUS_CODE EI_EXPOSE_REP 107 Medium
org.dynamoframework.configuration.DynamoConfigurationProperties$DefaultConfigurationProperties.setFalseRepresentations(Map) may expose internal representation by storing an externally mutable object into DynamoConfigurationProperties$DefaultConfigurationProperties.falseRepresentations MALICIOUS_CODE EI_EXPOSE_REP2 48 Medium
org.dynamoframework.configuration.DynamoConfigurationProperties$DefaultConfigurationProperties.setTrueRepresentations(Map) may expose internal representation by storing an externally mutable object into DynamoConfigurationProperties$DefaultConfigurationProperties.trueRepresentations MALICIOUS_CODE EI_EXPOSE_REP2 48 Medium

org.dynamoframework.configuration.DynamoPropertiesHolder

Bug Category Details Line Priority
Write to static field org.dynamoframework.configuration.DynamoPropertiesHolder.dynamoProperties from instance method org.dynamoframework.configuration.DynamoPropertiesHolder.setDynamoProperties(DynamoProperties) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 35 Medium

org.dynamoframework.dao.impl.DefaultDaoImpl

Bug Category Details Line Priority
org.dynamoframework.dao.impl.DefaultDaoImpl.getDslRoot() may expose internal representation by returning DefaultDaoImpl.dslRoot MALICIOUS_CODE EI_EXPOSE_REP 71 Medium
new org.dynamoframework.dao.impl.DefaultDaoImpl(EntityPathBase, Class, String[]) may expose internal representation by storing an externally mutable object into DefaultDaoImpl.dslRoot MALICIOUS_CODE EI_EXPOSE_REP2 64 Medium

org.dynamoframework.dao.impl.JpaQueryBuilder

Bug Category Details Line Priority
org.dynamoframework.dao.impl.JpaQueryBuilder.addFetchJoins(FetchParent, FetchJoinInformation[]) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 84 Medium
Write to static field org.dynamoframework.dao.impl.JpaQueryBuilder.dynamoProperties from instance method org.dynamoframework.dao.impl.JpaQueryBuilder.init(DynamoProperties) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 56 High

org.dynamoframework.domain.comparator.AttributeComparator

Bug Category Details Line Priority
org.dynamoframework.domain.comparator.AttributeComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 35 Medium

org.dynamoframework.domain.comparator.IdComparator

Bug Category Details Line Priority
org.dynamoframework.domain.comparator.IdComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 33 Medium

org.dynamoframework.domain.model.impl.AttributeModelImpl

Bug Category Details Line Priority
org.dynamoframework.domain.model.impl.AttributeModelImpl.getAllowedExtensions() may expose internal representation by returning AttributeModelImpl.allowedExtensions MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getCascadeModes() may expose internal representation by returning AttributeModelImpl.cascadeModes MALICIOUS_CODE EI_EXPOSE_REP 60 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getCustomSettings() may expose internal representation by returning AttributeModelImpl.customSettings MALICIOUS_CODE EI_EXPOSE_REP 68 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getDescriptions() may expose internal representation by returning AttributeModelImpl.descriptions MALICIOUS_CODE EI_EXPOSE_REP 92 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getDisplayFormats() may expose internal representation by returning AttributeModelImpl.displayFormats MALICIOUS_CODE EI_EXPOSE_REP 94 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getDisplayNames() may expose internal representation by returning AttributeModelImpl.displayNames MALICIOUS_CODE EI_EXPOSE_REP 96 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getEntityModel() may expose internal representation by returning AttributeModelImpl.entityModel MALICIOUS_CODE EI_EXPOSE_REP 109 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getFalseRepresentations() may expose internal representation by returning AttributeModelImpl.falseRepresentations MALICIOUS_CODE EI_EXPOSE_REP 111 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getNestedEntityModel() may expose internal representation by returning AttributeModelImpl.nestedEntityModel MALICIOUS_CODE EI_EXPOSE_REP 155 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getPrompts() may expose internal representation by returning AttributeModelImpl.prompts MALICIOUS_CODE EI_EXPOSE_REP 167 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.getTrueRepresentations() may expose internal representation by returning AttributeModelImpl.trueRepresentations MALICIOUS_CODE EI_EXPOSE_REP 205 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setAllowedExtensions(Set) may expose internal representation by storing an externally mutable object into AttributeModelImpl.allowedExtensions MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setCascadeModes(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.cascadeModes MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setCustomSettings(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.customSettings MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setDescriptions(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.descriptions MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setDisplayFormats(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.displayFormats MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setDisplayNames(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.displayNames MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setEntityModel(EntityModel) may expose internal representation by storing an externally mutable object into AttributeModelImpl.entityModel MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setFalseRepresentations(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.falseRepresentations MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setNestedEntityModel(EntityModel) may expose internal representation by storing an externally mutable object into AttributeModelImpl.nestedEntityModel MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setPrompts(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.prompts MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
org.dynamoframework.domain.model.impl.AttributeModelImpl.setTrueRepresentations(Map) may expose internal representation by storing an externally mutable object into AttributeModelImpl.trueRepresentations MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium

org.dynamoframework.domain.model.impl.EntityModelActionImpl

Bug Category Details Line Priority
org.dynamoframework.domain.model.impl.EntityModelActionImpl.getAttributeModels() may expose internal representation by returning EntityModelActionImpl.attributeModels MALICIOUS_CODE EI_EXPOSE_REP 40 Medium
org.dynamoframework.domain.model.impl.EntityModelActionImpl.getDisplayNames() may expose internal representation by returning EntityModelActionImpl.displayNames MALICIOUS_CODE EI_EXPOSE_REP 56 Medium
org.dynamoframework.domain.model.impl.EntityModelActionImpl.getEntityModel() may expose internal representation by returning EntityModelActionImpl.entityModel MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
org.dynamoframework.domain.model.impl.EntityModelActionImpl.getRoles() may expose internal representation by returning EntityModelActionImpl.roles MALICIOUS_CODE EI_EXPOSE_REP 54 Medium
org.dynamoframework.domain.model.impl.EntityModelActionImpl.setDisplayNames(Map) may expose internal representation by storing an externally mutable object into EntityModelActionImpl.displayNames MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.dynamoframework.domain.model.impl.EntityModelActionImpl.setEntityModel(EntityModel) may expose internal representation by storing an externally mutable object into EntityModelActionImpl.entityModel MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
org.dynamoframework.domain.model.impl.EntityModelActionImpl.setRoles(List) may expose internal representation by storing an externally mutable object into EntityModelActionImpl.roles MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.dynamoframework.domain.model.impl.EntityModelImpl

Bug Category Details Line Priority
org.dynamoframework.domain.model.impl.EntityModelImpl.getDeleteRoles() may expose internal representation by returning EntityModelImpl.deleteRoles MALICIOUS_CODE EI_EXPOSE_REP 118 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getDescriptions() may expose internal representation by returning EntityModelImpl.descriptions MALICIOUS_CODE EI_EXPOSE_REP 62 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getDetailJoins() may expose internal representation by returning EntityModelImpl.detailJoins MALICIOUS_CODE EI_EXPOSE_REP 102 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getDisplayNames() may expose internal representation by returning EntityModelImpl.displayNames MALICIOUS_CODE EI_EXPOSE_REP 65 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getDisplayNamesPlural() may expose internal representation by returning EntityModelImpl.displayNamesPlural MALICIOUS_CODE EI_EXPOSE_REP 68 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getEntityModelActions() may expose internal representation by returning EntityModelImpl.entityModelActions MALICIOUS_CODE EI_EXPOSE_REP 106 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getFetchJoins() may expose internal representation by returning EntityModelImpl.fetchJoins MALICIOUS_CODE EI_EXPOSE_REP 100 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getReadRoles() may expose internal representation by returning EntityModelImpl.readRoles MALICIOUS_CODE EI_EXPOSE_REP 112 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getSortOrder() may expose internal representation by returning EntityModelImpl.sortOrder MALICIOUS_CODE EI_EXPOSE_REP 109 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.getWriteRoles() may expose internal representation by returning EntityModelImpl.writeRoles MALICIOUS_CODE EI_EXPOSE_REP 115 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setDeleteRoles(List) may expose internal representation by storing an externally mutable object into EntityModelImpl.deleteRoles MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setDescriptions(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl.descriptions MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setDetailJoins(List) may expose internal representation by storing an externally mutable object into EntityModelImpl.detailJoins MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setDisplayNames(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl.displayNames MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setDisplayNamesPlural(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl.displayNamesPlural MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setEntityModelActions(List) may expose internal representation by storing an externally mutable object into EntityModelImpl.entityModelActions MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setFetchJoins(List) may expose internal representation by storing an externally mutable object into EntityModelImpl.fetchJoins MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setReadRoles(List) may expose internal representation by storing an externally mutable object into EntityModelImpl.readRoles MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setSortOrder(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl.sortOrder MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl.setWriteRoles(List) may expose internal representation by storing an externally mutable object into EntityModelImpl.writeRoles MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder

Bug Category Details Line Priority
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.attributeModels(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.attributeModels$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.deleteRoles(List) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.deleteRoles$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.descriptions(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.descriptions$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.detailJoins(List) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.detailJoins MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.displayNames(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.displayNames$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.displayNamesPlural(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.displayNamesPlural$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.entityModelActions(List) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.entityModelActions MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.fetchJoins(List) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.fetchJoins MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.readRoles(List) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.readRoles$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.sortOrder(Map) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.sortOrder$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
org.dynamoframework.domain.model.impl.EntityModelImpl$EntityModelImplBuilder.writeRoles(List) may expose internal representation by storing an externally mutable object into EntityModelImpl$EntityModelImplBuilder.writeRoles$value MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.dynamoframework.domain.query.FixedDataSetIterator

Bug Category Details Line Priority
new org.dynamoframework.domain.query.FixedDataSetIterator(List) may expose internal representation by storing an externally mutable object into FixedDataSetIterator.items MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

org.dynamoframework.domain.query.PagingDataSetIterator

Bug Category Details Line Priority
new org.dynamoframework.domain.query.PagingDataSetIterator(List, Function, int) may expose internal representation by storing an externally mutable object into PagingDataSetIterator.idList MALICIOUS_CODE EI_EXPOSE_REP2 74 Medium

org.dynamoframework.filter.AbstractJunctionFilter

Bug Category Details Line Priority
org.dynamoframework.filter.AbstractJunctionFilter.getFilters() may expose internal representation by returning AbstractJunctionFilter.filters MALICIOUS_CODE EI_EXPOSE_REP 38 Medium

org.dynamoframework.filter.Compare

Bug Category Details Line Priority
org.dynamoframework.filter.Compare.compareValue(Object) negates the return value of Comparable.compareTo(Object) BAD_PRACTICE RV_NEGATING_RESULT_OF_COMPARETO 199 Medium

org.dynamoframework.filter.FlexibleFilterDefinition

Bug Category Details Line Priority
org.dynamoframework.filter.FlexibleFilterDefinition.getAttributeModel() may expose internal representation by returning FlexibleFilterDefinition.attributeModel MALICIOUS_CODE EI_EXPOSE_REP 38 Medium

org.dynamoframework.filter.FlexibleFilterDefinition$FlexibleFilterDefinitionBuilder

Bug Category Details Line Priority
org.dynamoframework.filter.FlexibleFilterDefinition$FlexibleFilterDefinitionBuilder.attributeModel(AttributeModel) may expose internal representation by storing an externally mutable object into FlexibleFilterDefinition$FlexibleFilterDefinitionBuilder.attributeModel MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium

org.dynamoframework.filter.In

Bug Category Details Line Priority
org.dynamoframework.filter.In.getValues() may expose internal representation by returning In.values MALICIOUS_CODE EI_EXPOSE_REP 53 Medium
new org.dynamoframework.filter.In(String, Collection) may expose internal representation by storing an externally mutable object into In.values MALICIOUS_CODE EI_EXPOSE_REP2 44 Medium

org.dynamoframework.service.impl.DefaultServiceImpl

Bug Category Details Line Priority
org.dynamoframework.service.impl.DefaultServiceImpl.getUniquePropertyIds() may expose internal representation by returning DefaultServiceImpl.uniquePropertyIds MALICIOUS_CODE EI_EXPOSE_REP 144 Medium
new org.dynamoframework.service.impl.DefaultServiceImpl(EntityPathBase, Class, String[], boolean) may expose internal representation by storing an externally mutable object into DefaultServiceImpl.uniquePropertyIds MALICIOUS_CODE EI_EXPOSE_REP2 85 Medium
new org.dynamoframework.service.impl.DefaultServiceImpl(BaseDao, String[], boolean) may expose internal representation by storing an externally mutable object into DefaultServiceImpl.dao MALICIOUS_CODE EI_EXPOSE_REP2 114 Medium
new org.dynamoframework.service.impl.DefaultServiceImpl(BaseDao, String[], boolean) may expose internal representation by storing an externally mutable object into DefaultServiceImpl.uniquePropertyIds MALICIOUS_CODE EI_EXPOSE_REP2 115 Medium

org.dynamoframework.service.impl.EntityScanner

Bug Category Details Line Priority
Possible null pointer dereference in org.dynamoframework.service.impl.EntityScanner.findClass(String) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 91 Medium
Possible null pointer dereference in org.dynamoframework.service.impl.EntityScanner.postConstruct() due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 63 Medium
Write to static field org.dynamoframework.service.impl.EntityScanner.basePackages from instance method org.dynamoframework.service.impl.EntityScanner.postConstruct() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 58 High