SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.6

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
5 9 0 0

Files

Class Bugs
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource 9

org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource

Bug Category Details Line Priority
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnection() may expose internal representation by returning MockedDataSource.connection MALICIOUS_CODE EI_EXPOSE_REP 82 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnectionInitSqls() may expose internal representation by returning MockedDataSource.connectionInitSqls MALICIOUS_CODE EI_EXPOSE_REP 61 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getJdbcUrlProperties() may expose internal representation by returning MockedDataSource.jdbcUrlProperties MALICIOUS_CODE EI_EXPOSE_REP 63 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getOpenedConnections() may expose internal representation by returning MockedDataSource.openedConnections MALICIOUS_CODE EI_EXPOSE_REP 72 Medium
new org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource(Connection) may expose internal representation by storing an externally mutable object into MockedDataSource.connection MALICIOUS_CODE EI_EXPOSE_REP2 75 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.setConnectionInitSqls(List) may expose internal representation by storing an externally mutable object into MockedDataSource.connectionInitSqls MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.setJdbcUrlProperties(Properties) may expose internal representation by storing an externally mutable object into MockedDataSource.jdbcUrlProperties MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnection() may fail to clean up java.sql.Statement EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 86 Medium
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnection() may fail to close Statement BAD_PRACTICE ODR_OPEN_DATABASE_RESOURCE 86 Medium