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
12 10 0 0

Files

Class Bugs
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration 6
org.apache.shardingsphere.shadow.config.table.ShadowTableConfiguration 4

org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration

Bug Category Details Line Priority
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration.getDataSources() may expose internal representation by returning ShadowRuleConfiguration.dataSources MALICIOUS_CODE EI_EXPOSE_REP 49 Medium
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration.getShadowAlgorithms() may expose internal representation by returning ShadowRuleConfiguration.shadowAlgorithms MALICIOUS_CODE EI_EXPOSE_REP 58 Medium
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration.getTables() may expose internal representation by returning ShadowRuleConfiguration.tables MALICIOUS_CODE EI_EXPOSE_REP 53 Medium
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration.setDataSources(Collection) may expose internal representation by storing an externally mutable object into ShadowRuleConfiguration.dataSources MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration.setShadowAlgorithms(Map) may expose internal representation by storing an externally mutable object into ShadowRuleConfiguration.shadowAlgorithms MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration.setTables(Map) may expose internal representation by storing an externally mutable object into ShadowRuleConfiguration.tables MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

org.apache.shardingsphere.shadow.config.table.ShadowTableConfiguration

Bug Category Details Line Priority
org.apache.shardingsphere.shadow.config.table.ShadowTableConfiguration.getDataSourceNames() may expose internal representation by returning ShadowTableConfiguration.dataSourceNames MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
org.apache.shardingsphere.shadow.config.table.ShadowTableConfiguration.getShadowAlgorithmNames() may expose internal representation by returning ShadowTableConfiguration.shadowAlgorithmNames MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
new org.apache.shardingsphere.shadow.config.table.ShadowTableConfiguration(Collection, Collection) may expose internal representation by storing an externally mutable object into ShadowTableConfiguration.dataSourceNames MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium
new org.apache.shardingsphere.shadow.config.table.ShadowTableConfiguration(Collection, Collection) may expose internal representation by storing an externally mutable object into ShadowTableConfiguration.shadowAlgorithmNames MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium