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

Files

Class Bugs
org.apache.shardingsphere.sqlfederation.provider.calcite.CalciteSQLFederationExecutor 2
org.apache.shardingsphere.sqlfederation.provider.calcite.processor.SQLFederationProcessor 2
org.apache.shardingsphere.sqlfederation.provider.calcite.resultset.SQLFederationResultSetMetaData 2

org.apache.shardingsphere.sqlfederation.provider.calcite.CalciteSQLFederationExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.sqlfederation.provider.calcite.CalciteSQLFederationExecutor.getResultSet() may expose internal representation by returning CalciteSQLFederationExecutor.resultSet MALICIOUS_CODE EI_EXPOSE_REP 103 Medium
org.apache.shardingsphere.sqlfederation.provider.calcite.CalciteSQLFederationExecutor.getSchemaPlus() may expose internal representation by returning CalciteSQLFederationExecutor.schemaPlus MALICIOUS_CODE EI_EXPOSE_REP 101 Medium

org.apache.shardingsphere.sqlfederation.provider.calcite.processor.SQLFederationProcessor

Bug Category Details Line Priority
new org.apache.shardingsphere.sqlfederation.provider.calcite.processor.SQLFederationProcessor(ShardingSphereStatistics, JDBCExecutor) may expose internal representation by storing an externally mutable object into SQLFederationProcessor.statistics MALICIOUS_CODE EI_EXPOSE_REP2 69 Medium
Possible null pointer dereference in org.apache.shardingsphere.sqlfederation.provider.calcite.processor.SQLFederationProcessor.getSchemaPlus(SchemaPlus, String, String) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 134 Medium

org.apache.shardingsphere.sqlfederation.provider.calcite.resultset.SQLFederationResultSetMetaData

Bug Category Details Line Priority
new org.apache.shardingsphere.sqlfederation.provider.calcite.resultset.SQLFederationResultSetMetaData(Schema, List, DatabaseType, RelDataType, Map, DialectSQLFederationColumnTypeConverter) may expose internal representation by storing an externally mutable object into SQLFederationResultSetMetaData.expandProjections MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium
new org.apache.shardingsphere.sqlfederation.provider.calcite.resultset.SQLFederationResultSetMetaData(Schema, List, DatabaseType, RelDataType, Map, DialectSQLFederationColumnTypeConverter) may expose internal representation by storing an externally mutable object into SQLFederationResultSetMetaData.indexAndColumnLabels MALICIOUS_CODE EI_EXPOSE_REP2 69 Medium