SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.6

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
224 9 0 0

Files

Class Bugs
org.apache.shardingsphere.infra.autogen.version.ShardingSphereVersion 2
org.apache.shardingsphere.infra.config.database.impl.DataSourceGeneratedDatabaseConfiguration 1
org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration 3
org.apache.shardingsphere.infra.instance.ComputeNodeInstanceContext 1
org.apache.shardingsphere.infra.metadata.statistics.RowStatistics 1
org.apache.shardingsphere.infra.props.TypedProperties 1

org.apache.shardingsphere.infra.autogen.version.ShardingSphereVersion

Bug Category Details Line Priority
org.apache.shardingsphere.infra.autogen.version.ShardingSphereVersion.<static initializer for ShardingSphereVersion>() may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 34 Medium
org.apache.shardingsphere.infra.autogen.version.ShardingSphereVersion.<static initializer for ShardingSphereVersion>() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 34 Medium

org.apache.shardingsphere.infra.config.database.impl.DataSourceGeneratedDatabaseConfiguration

Bug Category Details Line Priority
new org.apache.shardingsphere.infra.config.database.impl.DataSourceGeneratedDatabaseConfiguration(Map, Collection) may expose internal representation by storing an externally mutable object into DataSourceGeneratedDatabaseConfiguration.ruleConfigurations MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium

org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration

Bug Category Details Line Priority
new org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration(Map, Collection) may expose internal representation by storing an externally mutable object into DataSourceProvidedDatabaseConfiguration.ruleConfigurations MALICIOUS_CODE EI_EXPOSE_REP2 50 Medium
new org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration(Map, Collection, Map) may expose internal representation by storing an externally mutable object into DataSourceProvidedDatabaseConfiguration.dataSources MALICIOUS_CODE EI_EXPOSE_REP2 63 Medium
new org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration(Map, Collection, Map) may expose internal representation by storing an externally mutable object into DataSourceProvidedDatabaseConfiguration.ruleConfigurations MALICIOUS_CODE EI_EXPOSE_REP2 60 Medium

org.apache.shardingsphere.infra.instance.ComputeNodeInstanceContext

Bug Category Details Line Priority
new org.apache.shardingsphere.infra.instance.ComputeNodeInstanceContext(ComputeNodeInstance, ModeConfiguration, EventBusContext) may expose internal representation by storing an externally mutable object into ComputeNodeInstanceContext.instance MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

org.apache.shardingsphere.infra.metadata.statistics.RowStatistics

Bug Category Details Line Priority
new org.apache.shardingsphere.infra.metadata.statistics.RowStatistics(List) may expose internal representation by storing an externally mutable object into RowStatistics.rows MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.apache.shardingsphere.infra.props.TypedProperties

Bug Category Details Line Priority
Exception thrown in class org.apache.shardingsphere.infra.props.TypedProperties at new org.apache.shardingsphere.infra.props.TypedProperties(Class, Properties) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 45 Medium