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
62 20 0 0

Files

Class Bugs
org.apache.shardingsphere.distsql.segment.AlgorithmSegment 2
org.apache.shardingsphere.distsql.segment.DataSourceSegment 2
org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowTableMetaDataStatement 2
org.apache.shardingsphere.distsql.statement.ral.updatable.LabelComputeNodeStatement 2
org.apache.shardingsphere.distsql.statement.ral.updatable.UnlabelComputeNodeStatement 2
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement 4
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement 4
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.UnregisterStorageUnitStatement 2

org.apache.shardingsphere.distsql.segment.AlgorithmSegment

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.segment.AlgorithmSegment.getProps() may expose internal representation by returning AlgorithmSegment.props MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
new org.apache.shardingsphere.distsql.segment.AlgorithmSegment(String, Properties) may expose internal representation by storing an externally mutable object into AlgorithmSegment.props MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.distsql.segment.DataSourceSegment

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.segment.DataSourceSegment.getProps() may expose internal representation by returning DataSourceSegment.props MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
new org.apache.shardingsphere.distsql.segment.DataSourceSegment(String, String, String, Properties) may expose internal representation by storing an externally mutable object into DataSourceSegment.props MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowTableMetaDataStatement

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowTableMetaDataStatement.getTableNames() may expose internal representation by returning ShowTableMetaDataStatement.tableNames MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
new org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowTableMetaDataStatement(Collection, DatabaseSegment) may expose internal representation by storing an externally mutable object into ShowTableMetaDataStatement.tableNames MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.shardingsphere.distsql.statement.ral.updatable.LabelComputeNodeStatement

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.statement.ral.updatable.LabelComputeNodeStatement.getLabels() may expose internal representation by returning LabelComputeNodeStatement.labels MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
new org.apache.shardingsphere.distsql.statement.ral.updatable.LabelComputeNodeStatement(boolean, String, Collection) may expose internal representation by storing an externally mutable object into LabelComputeNodeStatement.labels MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.distsql.statement.ral.updatable.UnlabelComputeNodeStatement

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.statement.ral.updatable.UnlabelComputeNodeStatement.getLabels() may expose internal representation by returning UnlabelComputeNodeStatement.labels MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
new org.apache.shardingsphere.distsql.statement.ral.updatable.UnlabelComputeNodeStatement(String, Collection) may expose internal representation by storing an externally mutable object into UnlabelComputeNodeStatement.labels MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement.getExpectedPrivileges() may expose internal representation by returning AlterStorageUnitStatement.expectedPrivileges MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement.getStorageUnits() may expose internal representation by returning AlterStorageUnitStatement.storageUnits MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
new org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement(Collection, Collection) may expose internal representation by storing an externally mutable object into AlterStorageUnitStatement.expectedPrivileges MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement(Collection, Collection) may expose internal representation by storing an externally mutable object into AlterStorageUnitStatement.storageUnits MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement.getExpectedPrivileges() may expose internal representation by returning RegisterStorageUnitStatement.expectedPrivileges MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement.getStorageUnits() may expose internal representation by returning RegisterStorageUnitStatement.storageUnits MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
new org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement(boolean, Collection, Collection) may expose internal representation by storing an externally mutable object into RegisterStorageUnitStatement.expectedPrivileges MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement(boolean, Collection, Collection) may expose internal representation by storing an externally mutable object into RegisterStorageUnitStatement.storageUnits MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.UnregisterStorageUnitStatement

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.UnregisterStorageUnitStatement.getStorageUnitNames() may expose internal representation by returning UnregisterStorageUnitStatement.storageUnitNames MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
new org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.UnregisterStorageUnitStatement(boolean, Collection, boolean, boolean) may expose internal representation by storing an externally mutable object into UnregisterStorageUnitStatement.storageUnitNames MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium