The following document contains the results of SpotBugs
SpotBugs Version is 4.9.3
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
5 | 9 | 0 | 0 |
Class | Bugs |
---|---|
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource | 9 |
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 | 85 | Medium |
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnectionInitSqls() may expose internal representation by returning MockedDataSource.connectionInitSqls | MALICIOUS_CODE | EI_EXPOSE_REP | 64 | Medium |
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getJdbcUrlProperties() may expose internal representation by returning MockedDataSource.jdbcUrlProperties | MALICIOUS_CODE | EI_EXPOSE_REP | 66 | Medium |
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getOpenedConnections() may expose internal representation by returning MockedDataSource.openedConnections | MALICIOUS_CODE | EI_EXPOSE_REP | 75 | 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 | 78 | 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 | 47 | 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 | 47 | Medium |
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnection() may fail to clean up java.sql.Statement | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 89 | Medium |
org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource.getConnection() may fail to close Statement | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE | 89 | Medium |