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

Files

Class Bugs
org.apache.shardingsphere.sqlfederation.executor.context.ExecutorBindContext 2
org.apache.shardingsphere.sqlfederation.executor.context.ExecutorContext 4
org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.jdbc.JDBCDataRowEnumerator 1
org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.memory.MemoryDataRowEnumerator 2

org.apache.shardingsphere.sqlfederation.executor.context.ExecutorBindContext

Bug Category Details Line Priority
org.apache.shardingsphere.sqlfederation.executor.context.ExecutorBindContext.getParameters() may expose internal representation by returning ExecutorBindContext.parameters MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
new org.apache.shardingsphere.sqlfederation.executor.context.ExecutorBindContext(SQLFederationRelConverter, Map) may expose internal representation by storing an externally mutable object into ExecutorBindContext.parameters MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

org.apache.shardingsphere.sqlfederation.executor.context.ExecutorContext

Bug Category Details Line Priority
org.apache.shardingsphere.sqlfederation.executor.context.ExecutorContext.getConnectionOffsets() may expose internal representation by returning ExecutorContext.connectionOffsets MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
org.apache.shardingsphere.sqlfederation.executor.context.ExecutorContext.getPreviewExecutionUnits() may expose internal representation by returning ExecutorContext.previewExecutionUnits MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
org.apache.shardingsphere.sqlfederation.executor.context.ExecutorContext.getStatistics() may expose internal representation by returning ExecutorContext.statistics MALICIOUS_CODE EI_EXPOSE_REP 56 Medium
new org.apache.shardingsphere.sqlfederation.executor.context.ExecutorContext(DriverExecutionPrepareEngine, JDBCExecutor, JDBCExecutorCallback, ShardingSphereStatistics, String, String, String) may expose internal representation by storing an externally mutable object into ExecutorContext.statistics MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium

org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.jdbc.JDBCDataRowEnumerator

Bug Category Details Line Priority
new org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.jdbc.JDBCDataRowEnumerator(MergedResult, QueryResultMetaData, Collection) may expose internal representation by storing an externally mutable object into JDBCDataRowEnumerator.statements MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium

org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.memory.MemoryDataRowEnumerator

Bug Category Details Line Priority
org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.memory.MemoryDataRowEnumerator.current() may expose internal representation by returning MemoryDataRowEnumerator.current MALICIOUS_CODE EI_EXPOSE_REP 51 Medium
new org.apache.shardingsphere.sqlfederation.executor.enumerable.enumerator.memory.MemoryDataRowEnumerator(Collection, Collection, DatabaseType) may expose internal representation by storing an externally mutable object into MemoryDataRowEnumerator.rows MALICIOUS_CODE EI_EXPOSE_REP2 44 Medium