SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.4

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
5 4 0 0

Files

Class Bugs
org.apache.shardingsphere.test.infra.fixture.jdbc.MockedDataSource 4

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

Bug Category Details Line Priority
org.apache.shardingsphere.test.infra.fixture.jdbc.MockedDataSource.getConnection() may expose internal representation by returning MockedDataSource.connection MALICIOUS_CODE EI_EXPOSE_REP 85 Medium
new org.apache.shardingsphere.test.infra.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.infra.fixture.jdbc.MockedDataSource.getConnection() may fail to clean up java.sql.Statement EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 89 Medium
org.apache.shardingsphere.test.infra.fixture.jdbc.MockedDataSource.getConnection() may fail to close Statement BAD_PRACTICE ODR_OPEN_DATABASE_RESOURCE 89 Medium