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
17 5 0 0

Files

Class Bugs
org.apache.shardingsphere.infra.merge.MergeEngine 3
org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryMergedResult 1
org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryQueryResultRow 1

org.apache.shardingsphere.infra.merge.MergeEngine

Bug Category Details Line Priority
new org.apache.shardingsphere.infra.merge.MergeEngine(ShardingSphereMetaData, ShardingSphereDatabase, ConfigurationProperties, ConnectionContext) may expose internal representation by storing an externally mutable object into MergeEngine.connectionContext MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium
new org.apache.shardingsphere.infra.merge.MergeEngine(ShardingSphereMetaData, ShardingSphereDatabase, ConfigurationProperties, ConnectionContext) may expose internal representation by storing an externally mutable object into MergeEngine.database MALICIOUS_CODE EI_EXPOSE_REP2 63 Medium
new org.apache.shardingsphere.infra.merge.MergeEngine(ShardingSphereMetaData, ShardingSphereDatabase, ConfigurationProperties, ConnectionContext) may expose internal representation by storing an externally mutable object into MergeEngine.metaData MALICIOUS_CODE EI_EXPOSE_REP2 62 Medium

org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryMergedResult

Bug Category Details Line Priority
Exception thrown in class org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryMergedResult at new org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryMergedResult(ShardingSphereRule, ShardingSphereSchema, SQLStatementContext, List) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 57 Medium

org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryQueryResultRow

Bug Category Details Line Priority
new org.apache.shardingsphere.infra.merge.result.impl.memory.MemoryQueryResultRow(Object[]) may expose internal representation by storing an externally mutable object into MemoryQueryResultRow.data MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium