SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
26 22 0 0

Files

Class Bugs
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration 14
org.apache.shardingsphere.sharding.api.config.strategy.audit.ShardingAuditStrategyConfiguration 2
org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue 4
org.apache.shardingsphere.sharding.api.sharding.hint.HintShardingValue 2

org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration

Bug Category Details Line Priority
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getAuditors() may expose internal representation by returning ShardingRuleConfiguration.auditors MALICIOUS_CODE EI_EXPOSE_REP 96 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getAutoTables() may expose internal representation by returning ShardingRuleConfiguration.autoTables MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getBindingTableGroups() may expose internal representation by returning ShardingRuleConfiguration.bindingTableGroups MALICIOUS_CODE EI_EXPOSE_REP 63 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getKeyGenerateStrategies() may expose internal representation by returning ShardingRuleConfiguration.keyGenerateStrategies MALICIOUS_CODE EI_EXPOSE_REP 81 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getKeyGenerators() may expose internal representation by returning ShardingRuleConfiguration.keyGenerators MALICIOUS_CODE EI_EXPOSE_REP 91 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getShardingAlgorithms() may expose internal representation by returning ShardingRuleConfiguration.shardingAlgorithms MALICIOUS_CODE EI_EXPOSE_REP 86 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.getTables() may expose internal representation by returning ShardingRuleConfiguration.tables MALICIOUS_CODE EI_EXPOSE_REP 55 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setAuditors(Map) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.auditors MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setAutoTables(Collection) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.autoTables MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setBindingTableGroups(Collection) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.bindingTableGroups MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setKeyGenerateStrategies(Map) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.keyGenerateStrategies MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setKeyGenerators(Map) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.keyGenerators MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setShardingAlgorithms(Map) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.shardingAlgorithms MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration.setTables(Collection) may expose internal representation by storing an externally mutable object into ShardingRuleConfiguration.tables MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium

org.apache.shardingsphere.sharding.api.config.strategy.audit.ShardingAuditStrategyConfiguration

Bug Category Details Line Priority
org.apache.shardingsphere.sharding.api.config.strategy.audit.ShardingAuditStrategyConfiguration.getAuditorNames() may expose internal representation by returning ShardingAuditStrategyConfiguration.auditorNames MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
new org.apache.shardingsphere.sharding.api.config.strategy.audit.ShardingAuditStrategyConfiguration(Collection, boolean) may expose internal representation by storing an externally mutable object into ShardingAuditStrategyConfiguration.auditorNames MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue

Bug Category Details Line Priority
org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue.getColumnNameAndRangeValuesMap() may expose internal representation by returning ComplexKeysShardingValue.columnNameAndRangeValuesMap MALICIOUS_CODE EI_EXPOSE_REP 43 Medium
org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue.getColumnNameAndShardingValuesMap() may expose internal representation by returning ComplexKeysShardingValue.columnNameAndShardingValuesMap MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
new org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue(String, Map, Map) may expose internal representation by storing an externally mutable object into ComplexKeysShardingValue.columnNameAndRangeValuesMap MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium
new org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue(String, Map, Map) may expose internal representation by storing an externally mutable object into ComplexKeysShardingValue.columnNameAndShardingValuesMap MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium

org.apache.shardingsphere.sharding.api.sharding.hint.HintShardingValue

Bug Category Details Line Priority
org.apache.shardingsphere.sharding.api.sharding.hint.HintShardingValue.getValues() may expose internal representation by returning HintShardingValue.values MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
new org.apache.shardingsphere.sharding.api.sharding.hint.HintShardingValue(String, String, Collection) may expose internal representation by storing an externally mutable object into HintShardingValue.values MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium