SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
49 14 0 0

Files

Class Bugs
org.apache.shardingsphere.distsql.handler.engine.query.DistSQLQueryExecuteEngine 3
org.apache.shardingsphere.distsql.handler.engine.update.DistSQLUpdateExecuteEngine 1
org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.database.DatabaseRuleDefinitionExecuteEngine 2
org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.global.GlobalRuleDefinitionExecuteEngine 1
org.apache.shardingsphere.distsql.handler.executor.rdl.resource.AlterStorageUnitExecutor 1
org.apache.shardingsphere.distsql.handler.executor.rdl.resource.RegisterStorageUnitExecutor 1
org.apache.shardingsphere.distsql.handler.executor.rdl.resource.UnregisterStorageUnitExecutor 1
org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowLogicalTablesExecutor 1
org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowRulesUsedStorageUnitExecutor 1
org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowStorageUnitExecutor 1
org.apache.shardingsphere.distsql.handler.executor.rql.rule.RuleCountExecutor 1

org.apache.shardingsphere.distsql.handler.engine.query.DistSQLQueryExecuteEngine

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.engine.query.DistSQLQueryExecuteEngine.getColumnNames() may expose internal representation by returning DistSQLQueryExecuteEngine.columnNames MALICIOUS_CODE EI_EXPOSE_REP 47 Medium
org.apache.shardingsphere.distsql.handler.engine.query.DistSQLQueryExecuteEngine.getRows() may expose internal representation by returning DistSQLQueryExecuteEngine.rows MALICIOUS_CODE EI_EXPOSE_REP 50 Medium
new org.apache.shardingsphere.distsql.handler.engine.query.DistSQLQueryExecuteEngine(DistSQLStatement, String, ContextManager, DistSQLConnectionContext) may expose internal representation by storing an externally mutable object into DistSQLQueryExecuteEngine.sqlStatement MALICIOUS_CODE EI_EXPOSE_REP2 55 Medium

org.apache.shardingsphere.distsql.handler.engine.update.DistSQLUpdateExecuteEngine

Bug Category Details Line Priority
new org.apache.shardingsphere.distsql.handler.engine.update.DistSQLUpdateExecuteEngine(DistSQLStatement, String, ContextManager) may expose internal representation by storing an externally mutable object into DistSQLUpdateExecuteEngine.sqlStatement MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium

org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.database.DatabaseRuleDefinitionExecuteEngine

Bug Category Details Line Priority
new org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.database.DatabaseRuleDefinitionExecuteEngine(DatabaseRuleDefinitionStatement, ContextManager, ShardingSphereDatabase, DatabaseRuleDefinitionExecutor) may expose internal representation by storing an externally mutable object into DatabaseRuleDefinitionExecuteEngine.database MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
new org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.database.DatabaseRuleDefinitionExecuteEngine(DatabaseRuleDefinitionStatement, ContextManager, ShardingSphereDatabase, DatabaseRuleDefinitionExecutor) may expose internal representation by storing an externally mutable object into DatabaseRuleDefinitionExecuteEngine.sqlStatement MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium

org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.global.GlobalRuleDefinitionExecuteEngine

Bug Category Details Line Priority
new org.apache.shardingsphere.distsql.handler.engine.update.rdl.rule.engine.global.GlobalRuleDefinitionExecuteEngine(GlobalRuleDefinitionStatement, ContextManager, GlobalRuleDefinitionExecutor) may expose internal representation by storing an externally mutable object into GlobalRuleDefinitionExecuteEngine.sqlStatement MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.distsql.handler.executor.rdl.resource.AlterStorageUnitExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rdl.resource.AlterStorageUnitExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into AlterStorageUnitExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 54 Medium

org.apache.shardingsphere.distsql.handler.executor.rdl.resource.RegisterStorageUnitExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rdl.resource.RegisterStorageUnitExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into RegisterStorageUnitExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium

org.apache.shardingsphere.distsql.handler.executor.rdl.resource.UnregisterStorageUnitExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rdl.resource.UnregisterStorageUnitExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into UnregisterStorageUnitExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowLogicalTablesExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowLogicalTablesExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into ShowLogicalTablesExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowRulesUsedStorageUnitExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowRulesUsedStorageUnitExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into ShowRulesUsedStorageUnitExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium

org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowStorageUnitExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rql.resource.ShowStorageUnitExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into ShowStorageUnitExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium

org.apache.shardingsphere.distsql.handler.executor.rql.rule.RuleCountExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.distsql.handler.executor.rql.rule.RuleCountExecutor.setDatabase(ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into RuleCountExecutor.database MALICIOUS_CODE EI_EXPOSE_REP2 38 Medium