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 |
| 59 |
16 |
0 |
0 |
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.type.ral.queryable.show.ShowTableMetaDataStatement
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.distsql.statement.type.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.type.ral.queryable.show.ShowTableMetaDataStatement(Collection, FromDatabaseSegment) may expose internal representation by storing an externally mutable object into ShowTableMetaDataStatement.tableNames |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
42 |
Medium |
org.apache.shardingsphere.distsql.statement.type.rdl.resource.unit.type.AlterStorageUnitStatement
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.distsql.statement.type.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.type.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.type.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.type.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.type.rdl.resource.unit.type.RegisterStorageUnitStatement
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.distsql.statement.type.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.type.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.type.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.type.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.type.rdl.resource.unit.type.UnregisterStorageUnitStatement
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.distsql.statement.type.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.type.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 |