private State normalState() throws SQLException { HikariDataSource dataSourcePool = getDataSourcePool(); boolean keep = false; try { // Setup monitoring HikariPoolMXBean poolProxy = initPoolMbeans(); testDataSource(dataSourcePool); keep = true; return new State(StateType.NORMAL, dataSourcePool, poolProxy, null); } finally { if (!keep) { IOUtils.closeQuietly(dataSourcePool); } } }
private State normalState() throws SQLException { HikariDataSource dataSourcePool = getDataSourcePool(); boolean keep = false; try { // Setup monitoring HikariPoolMXBean poolProxy = initPoolMbeans(); testDataSource(dataSourcePool); keep = true; return new State(StateType.NORMAL, dataSourcePool, poolProxy, null); } finally { if (!keep) { IOUtils.closeQuietly(dataSourcePool); } } }