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 |
|---|---|---|---|
| 96 | 83 | 0 | 0 |
Files
org.apache.shardingsphere.driver.executor.engine.DriverExecuteExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, DriverJDBCPushDownExecuteExecutor, DriverRawPushDownExecuteExecutor, SQLFederationEngine, DriverTransactionSQLStatementExecutor) may expose internal representation by storing an externally mutable object into DriverExecuteExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 55 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, DriverJDBCPushDownExecuteExecutor, DriverRawPushDownExecuteExecutor, SQLFederationEngine, DriverTransactionSQLStatementExecutor) may expose internal representation by storing an externally mutable object into DriverExecuteExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 55 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor, RawExecutor, SQLFederationEngine, DriverTransactionSQLStatementExecutor) may expose internal representation by storing an externally mutable object into DriverExecuteExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 75 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor, RawExecutor, SQLFederationEngine, DriverTransactionSQLStatementExecutor) may expose internal representation by storing an externally mutable object into DriverExecuteExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 76 | Medium |
org.apache.shardingsphere.driver.executor.engine.DriverExecuteQueryExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteQueryExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor, RawExecutor, SQLFederationEngine) may expose internal representation by storing an externally mutable object into DriverExecuteQueryExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 60 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteQueryExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor, RawExecutor, SQLFederationEngine) may expose internal representation by storing an externally mutable object into DriverExecuteQueryExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 61 | Medium |
org.apache.shardingsphere.driver.executor.engine.DriverExecuteUpdateExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteUpdateExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor, RawExecutor) may expose internal representation by storing an externally mutable object into DriverExecuteUpdateExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 54 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.DriverExecuteUpdateExecutor(ShardingSphereMetaData, DriverJDBCPushDownExecuteUpdateExecutor, DriverRawPushDownExecuteUpdateExecutor) may expose internal representation by storing an externally mutable object into DriverExecuteUpdateExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.BatchExecutionUnit
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.BatchExecutionUnit.getJdbcAndActualAddBatchCallTimesMap() may expose internal representation by returning BatchExecutionUnit.jdbcAndActualAddBatchCallTimesMap | MALICIOUS_CODE | EI_EXPOSE_REP | 45 | Medium |
org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.BatchPreparedStatementExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.BatchPreparedStatementExecutor.getBatchExecutionUnits() may expose internal representation by returning BatchPreparedStatementExecutor.batchExecutionUnits | MALICIOUS_CODE | EI_EXPOSE_REP | 58 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.BatchPreparedStatementExecutor(ShardingSphereDatabase, JDBCExecutor, String) may expose internal representation by storing an externally mutable object into BatchPreparedStatementExecutor.database | MALICIOUS_CODE | EI_EXPOSE_REP2 | 64 | Medium |
org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.DriverExecuteBatchExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.DriverExecuteBatchExecutor(ShardingSphereConnection, ShardingSphereMetaData, StatementOption, StatementManager, ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into DriverExecuteBatchExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 67 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.batch.preparedstatement.DriverExecuteBatchExecutor(ShardingSphereConnection, ShardingSphereMetaData, StatementOption, StatementManager, ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into DriverExecuteBatchExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 68 | Medium |
org.apache.shardingsphere.driver.executor.engine.batch.statement.BatchStatementExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.batch.statement.BatchStatementExecutor(Statement) may expose internal representation by storing an externally mutable object into BatchStatementExecutor.statement | MALICIOUS_CODE | EI_EXPOSE_REP2 | 30 | Medium |
org.apache.shardingsphere.driver.executor.engine.facade.DriverExecutorFacade
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.facade.DriverExecutorFacade(ShardingSphereConnection, StatementOption, StatementManager, JDBCDriverType, ShardingSphereDatabase) may expose internal representation by storing an externally mutable object into DriverExecutorFacade.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 74 | Medium |
org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor) may expose internal representation by storing an externally mutable object into DriverJDBCPushDownExecuteExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 67 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor) may expose internal representation by storing an externally mutable object into DriverJDBCPushDownExecuteExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 67 | Medium |
org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteQueryExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteQueryExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor) may expose internal representation by storing an externally mutable object into DriverJDBCPushDownExecuteQueryExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 73 | Medium |
org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteUpdateExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.pushdown.jdbc.DriverJDBCPushDownExecuteUpdateExecutor(ShardingSphereConnection, ShardingSphereMetaData, JDBCExecutor) may expose internal representation by storing an externally mutable object into DriverJDBCPushDownExecuteUpdateExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 72 | Medium |
org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, RawExecutor) may expose internal representation by storing an externally mutable object into DriverRawPushDownExecuteExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 39 | Medium |
| new org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteExecutor(ShardingSphereConnection, ShardingSphereMetaData, RawExecutor) may expose internal representation by storing an externally mutable object into DriverRawPushDownExecuteExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 39 | Medium |
org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteQueryExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteQueryExecutor(ShardingSphereConnection, ShardingSphereMetaData, RawExecutor) may expose internal representation by storing an externally mutable object into DriverRawPushDownExecuteQueryExecutor.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 65 | Medium |
org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteUpdateExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.pushdown.raw.DriverRawPushDownExecuteUpdateExecutor(ShardingSphereConnection, ShardingSphereMetaData, RawExecutor) may expose internal representation by storing an externally mutable object into DriverRawPushDownExecuteUpdateExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 52 | Medium |
org.apache.shardingsphere.driver.executor.engine.transaction.DriverTransactionSQLStatementExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.transaction.DriverTransactionSQLStatementExecutor(ShardingSphereConnection) may expose internal representation by storing an externally mutable object into DriverTransactionSQLStatementExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
org.apache.shardingsphere.driver.executor.engine.transaction.DriverTransactionalExecutor
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.executor.engine.transaction.DriverTransactionalExecutor(ShardingSphereConnection) may expose internal representation by storing an externally mutable object into DriverTransactionalExecutor.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 40 | Medium |
org.apache.shardingsphere.driver.jdbc.adapter.AbstractDataSourceAdapter
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in new org.apache.shardingsphere.driver.jdbc.adapter.AbstractDataSourceAdapter(): new java.io.PrintWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 34 | High |
| org.apache.shardingsphere.driver.jdbc.adapter.AbstractDataSourceAdapter.getLogWriter() may expose internal representation by returning AbstractDataSourceAdapter.logWriter | MALICIOUS_CODE | EI_EXPOSE_REP | 34 | Medium |
| org.apache.shardingsphere.driver.jdbc.adapter.AbstractDataSourceAdapter.setLogWriter(PrintWriter) may expose internal representation by storing an externally mutable object into AbstractDataSourceAdapter.logWriter | MALICIOUS_CODE | EI_EXPOSE_REP2 | 31 | Medium |
org.apache.shardingsphere.driver.jdbc.adapter.AbstractPreparedStatementAdapter
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.adapter.AbstractPreparedStatementAdapter.getParameters() may expose internal representation by returning AbstractPreparedStatementAdapter.parameters | MALICIOUS_CODE | EI_EXPOSE_REP | 48 | Medium |
org.apache.shardingsphere.driver.jdbc.adapter.AbstractResultSetAdapter
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.adapter.AbstractResultSetAdapter.getStatement() may expose internal representation by returning AbstractResultSetAdapter.statement | MALICIOUS_CODE | EI_EXPOSE_REP | 45 | Medium |
org.apache.shardingsphere.driver.jdbc.adapter.AdaptedDatabaseMetaData
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.jdbc.adapter.AdaptedDatabaseMetaData(DatabaseMetaData) may expose internal representation by storing an externally mutable object into AdaptedDatabaseMetaData.databaseMetaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 29 | Medium |
org.apache.shardingsphere.driver.jdbc.adapter.WrapperAdapter
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.adapter.WrapperAdapter.getMethodInvocationRecorder() may expose internal representation by returning WrapperAdapter.methodInvocationRecorder | MALICIOUS_CODE | EI_EXPOSE_REP | 34 | Medium |
org.apache.shardingsphere.driver.jdbc.core.connection.DriverDatabaseConnectionManager
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.connection.DriverDatabaseConnectionManager.getConnectionContext() may expose internal representation by returning DriverDatabaseConnectionManager.connectionContext | MALICIOUS_CODE | EI_EXPOSE_REP | 64 | Medium |
org.apache.shardingsphere.driver.jdbc.core.connection.ShardingSphereConnection
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.connection.ShardingSphereConnection.getDatabaseConnectionManager() may expose internal representation by returning ShardingSphereConnection.databaseConnectionManager | MALICIOUS_CODE | EI_EXPOSE_REP | 67 | Medium |
org.apache.shardingsphere.driver.jdbc.core.datasource.metadata.ShardingSphereDatabaseMetaData
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.datasource.metadata.ShardingSphereDatabaseMetaData.getConnection() may expose internal representation by returning ShardingSphereDatabaseMetaData.currentPhysicalConnection | MALICIOUS_CODE | EI_EXPOSE_REP | 61 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.datasource.metadata.ShardingSphereDatabaseMetaData(ShardingSphereConnection) may expose internal representation by storing an externally mutable object into ShardingSphereDatabaseMetaData.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 52 | Medium |
org.apache.shardingsphere.driver.jdbc.core.driver.DriverDataSourceCache
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.driver.DriverDataSourceCache.getDataSourceMap() may expose internal representation by returning DriverDataSourceCache.dataSourceMap | MALICIOUS_CODE | EI_EXPOSE_REP | 38 | Medium |
org.apache.shardingsphere.driver.jdbc.core.resultset.DatabaseMetaDataResultSet
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.jdbc.core.resultset.DatabaseMetaDataResultSet(ResultSet, Collection) may expose internal representation by storing an externally mutable object into DatabaseMetaDataResultSet.resultSet | MALICIOUS_CODE | EI_EXPOSE_REP2 | 76 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.resultset.DatabaseMetaDataResultSet(ResultSet, Collection) may expose internal representation by storing an externally mutable object into DatabaseMetaDataResultSet.rules | MALICIOUS_CODE | EI_EXPOSE_REP2 | 77 | Medium |
org.apache.shardingsphere.driver.jdbc.core.resultset.GeneratedKeysResultSet
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.resultset.GeneratedKeysResultSet.getStatement() may expose internal representation by returning GeneratedKeysResultSet.statement | MALICIOUS_CODE | EI_EXPOSE_REP | 240 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.resultset.GeneratedKeysResultSet(String, Iterator, Statement) may expose internal representation by storing an externally mutable object into GeneratedKeysResultSet.statement | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.resultset.GeneratedKeysResultSet(String, Iterator, Statement) may expose internal representation by storing an externally mutable object into GeneratedKeysResultSet.values | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet.getColumnLabelAndIndexMap() may expose internal representation by returning ShardingSphereResultSet.columnLabelAndIndexMap | MALICIOUS_CODE | EI_EXPOSE_REP | 72 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet(List, MergedResult, Statement, SQLStatementContext, Map) may expose internal representation by storing an externally mutable object into ShardingSphereResultSet.columnLabelAndIndexMap | MALICIOUS_CODE | EI_EXPOSE_REP2 | 89 | Medium |
org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetFactory
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetFactory(ConnectionContext, ShardingSphereMetaData, ConfigurationProperties, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereResultSetFactory.connectionContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetFactory(ConnectionContext, ShardingSphereMetaData, ConfigurationProperties, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereResultSetFactory.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetFactory(ConnectionContext, ShardingSphereMetaData, ConfigurationProperties, Collection) may expose internal representation by storing an externally mutable object into ShardingSphereResultSetFactory.statements | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetMetaData
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSetMetaData(ResultSetMetaData, ShardingSphereDatabase, SQLStatementContext) may expose internal representation by storing an externally mutable object into ShardingSphereResultSetMetaData.database | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
org.apache.shardingsphere.driver.jdbc.core.resultset.VisibleColumnMapping
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.resultset.VisibleColumnMapping.getColumnLabelAndIndexMap() may expose internal representation by returning VisibleColumnMapping.columnLabelAndIndexMap | MALICIOUS_CODE | EI_EXPOSE_REP | 55 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.resultset.VisibleColumnMapping.getExpandProjections() may expose internal representation by returning VisibleColumnMapping.expandProjections | MALICIOUS_CODE | EI_EXPOSE_REP | 60 | Medium |
org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.executeQuery() may expose internal representation by returning ShardingSpherePreparedStatement.currentResultSet | MALICIOUS_CODE | EI_EXPOSE_REP | 190 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.getConnection() may expose internal representation by returning ShardingSpherePreparedStatement.connection | MALICIOUS_CODE | EI_EXPOSE_REP | 77 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.getGeneratedKeys() may expose internal representation by returning ShardingSpherePreparedStatement.currentBatchGeneratedKeysResultSet | MALICIOUS_CODE | EI_EXPOSE_REP | 346 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.getResultSet() may expose internal representation by returning ShardingSpherePreparedStatement.currentResultSet | MALICIOUS_CODE | EI_EXPOSE_REP | 286 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.getRoutedStatements() may expose internal representation by returning ShardingSpherePreparedStatement.statements | MALICIOUS_CODE | EI_EXPOSE_REP | 456 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.getUsedDatabase() may expose internal representation by returning ShardingSpherePreparedStatement.usedDatabase | MALICIOUS_CODE | EI_EXPOSE_REP | 88 | Medium |
org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement.executeQuery(String) may expose internal representation by returning ShardingSphereStatement.currentResultSet | MALICIOUS_CODE | EI_EXPOSE_REP | 130 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement.getConnection() may expose internal representation by returning ShardingSphereStatement.connection | MALICIOUS_CODE | EI_EXPOSE_REP | 74 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement.getResultSet() may expose internal representation by returning ShardingSphereStatement.currentResultSet | MALICIOUS_CODE | EI_EXPOSE_REP | 367 | Medium |
| org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement.getRoutedStatements() may expose internal representation by returning ShardingSphereStatement.statements | MALICIOUS_CODE | EI_EXPOSE_REP | 405 | Medium |
| new org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement(ShardingSphereConnection, int, int, int) may expose internal representation by storing an externally mutable object into ShardingSphereStatement.connection | MALICIOUS_CODE | EI_EXPOSE_REP2 | 110 | Medium |
org.apache.shardingsphere.driver.jdbc.core.statement.metadata.ShardingSphereParameterMetaData
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new org.apache.shardingsphere.driver.jdbc.core.statement.metadata.ShardingSphereParameterMetaData(SQLStatement) may expose internal representation by storing an externally mutable object into ShardingSphereParameterMetaData.sqlStatement | MALICIOUS_CODE | EI_EXPOSE_REP2 | 27 | Medium |
org.apache.shardingsphere.driver.state.circuit.statement.CircuitBreakerStatement
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.state.circuit.statement.CircuitBreakerStatement.executeQuery(String) may return null, but is declared @Nonnull | CORRECTNESS | NP_NONNULL_RETURN_VIOLATION | 154 | High |
org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getAuthority() may expose internal representation by returning YamlJDBCConfiguration.authority | MALICIOUS_CODE | EI_EXPOSE_REP | 54 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getDataSources() may expose internal representation by returning YamlJDBCConfiguration.dataSources | MALICIOUS_CODE | EI_EXPOSE_REP | 48 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getGlobalClock() may expose internal representation by returning YamlJDBCConfiguration.globalClock | MALICIOUS_CODE | EI_EXPOSE_REP | 60 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getMode() may expose internal representation by returning YamlJDBCConfiguration.mode | MALICIOUS_CODE | EI_EXPOSE_REP | 52 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getProps() may expose internal representation by returning YamlJDBCConfiguration.props | MALICIOUS_CODE | EI_EXPOSE_REP | 66 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getRules() may expose internal representation by returning YamlJDBCConfiguration.rules | MALICIOUS_CODE | EI_EXPOSE_REP | 50 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getSqlFederation() may expose internal representation by returning YamlJDBCConfiguration.sqlFederation | MALICIOUS_CODE | EI_EXPOSE_REP | 62 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getSqlParser() may expose internal representation by returning YamlJDBCConfiguration.sqlParser | MALICIOUS_CODE | EI_EXPOSE_REP | 56 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getSqlTranslator() may expose internal representation by returning YamlJDBCConfiguration.sqlTranslator | MALICIOUS_CODE | EI_EXPOSE_REP | 64 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.getTransaction() may expose internal representation by returning YamlJDBCConfiguration.transaction | MALICIOUS_CODE | EI_EXPOSE_REP | 58 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setAuthority(YamlAuthorityRuleConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.authority | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setDataSources(Map) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.dataSources | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setGlobalClock(YamlGlobalClockRuleConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.globalClock | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setMode(YamlModeConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.mode | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setProps(Properties) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.props | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setRules(Collection) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.rules | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setSqlFederation(YamlSQLFederationRuleConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.sqlFederation | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setSqlParser(YamlSQLParserRuleConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.sqlParser | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setSqlTranslator(YamlSQLTranslatorRuleConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.sqlTranslator | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| org.apache.shardingsphere.driver.yaml.YamlJDBCConfiguration.setTransaction(YamlTransactionRuleConfiguration) may expose internal representation by storing an externally mutable object into YamlJDBCConfiguration.transaction | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
