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

Files

Class Bugs
org.apache.shardingsphere.data.pipeline.distsql.statement.updatable.AlterTransmissionRuleStatement 2
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.pojo.SourceTargetEntry 2
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.MigrateTableStatement 2
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.RegisterMigrationSourceStorageUnitStatement 2
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.UnregisterMigrationSourceStorageUnitStatement 2

org.apache.shardingsphere.data.pipeline.distsql.statement.updatable.AlterTransmissionRuleStatement

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.distsql.statement.updatable.AlterTransmissionRuleStatement.getProcessConfigSegment() may expose internal representation by returning AlterTransmissionRuleStatement.processConfigSegment MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
new org.apache.shardingsphere.data.pipeline.distsql.statement.updatable.AlterTransmissionRuleStatement(String, TransmissionRuleSegment) may expose internal representation by storing an externally mutable object into AlterTransmissionRuleStatement.processConfigSegment MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.data.pipeline.migration.distsql.statement.pojo.SourceTargetEntry

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.pojo.SourceTargetEntry.getSource() may expose internal representation by returning SourceTargetEntry.source MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
new org.apache.shardingsphere.data.pipeline.migration.distsql.statement.pojo.SourceTargetEntry(String, DataNode, String) may expose internal representation by storing an externally mutable object into SourceTargetEntry.source MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.MigrateTableStatement

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.MigrateTableStatement.getSourceTargetEntries() may expose internal representation by returning MigrateTableStatement.sourceTargetEntries MALICIOUS_CODE EI_EXPOSE_REP 33 Medium
new org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.MigrateTableStatement(List, String) may expose internal representation by storing an externally mutable object into MigrateTableStatement.sourceTargetEntries MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.RegisterMigrationSourceStorageUnitStatement

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.RegisterMigrationSourceStorageUnitStatement.getDataSources() may expose internal representation by returning RegisterMigrationSourceStorageUnitStatement.dataSources MALICIOUS_CODE EI_EXPOSE_REP 33 Medium
new org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.RegisterMigrationSourceStorageUnitStatement(Collection) may expose internal representation by storing an externally mutable object into RegisterMigrationSourceStorageUnitStatement.dataSources MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.UnregisterMigrationSourceStorageUnitStatement

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.UnregisterMigrationSourceStorageUnitStatement.getNames() may expose internal representation by returning UnregisterMigrationSourceStorageUnitStatement.names MALICIOUS_CODE EI_EXPOSE_REP 30 Medium
new org.apache.shardingsphere.data.pipeline.migration.distsql.statement.updatable.UnregisterMigrationSourceStorageUnitStatement(Collection) may expose internal representation by storing an externally mutable object into UnregisterMigrationSourceStorageUnitStatement.names MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium