From b4f25170b3eae359166cab5c56f846294c25097d Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Thu, 22 Feb 2018 22:47:38 +0900 Subject: [PATCH] Setup for a v2.7.8 release. --- pom.xml | 2 +- src/main/java/com/zaxxer/hikari/HikariConfig.java | 12 ------------ .../java/com/zaxxer/hikari/HikariDataSource.java | 4 ++-- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 9375f62a..9738f1c2 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ com.zaxxer HikariCP - 3.0.0-SNAPSHOT + 2.7.8-SNAPSHOT bundle HikariCP diff --git a/src/main/java/com/zaxxer/hikari/HikariConfig.java b/src/main/java/com/zaxxer/hikari/HikariConfig.java index d9f46d0e..9b99a445 100644 --- a/src/main/java/com/zaxxer/hikari/HikariConfig.java +++ b/src/main/java/com/zaxxer/hikari/HikariConfig.java @@ -149,18 +149,6 @@ public class HikariConfig implements HikariConfigMXBean loadProperties(propertyFileName); } - /** - * Determine whether this configuration has been sealed (because the pool as started - * to use it. Use the {@link HikariConfigMXBean} methods to alter supported methods - * at runtime. - * - * @return true if the configuration is sealed. - */ - public boolean isSealed() - { - return sealed; - } - // *********************************************************************** // HikariConfigMXBean methods // *********************************************************************** diff --git a/src/main/java/com/zaxxer/hikari/HikariDataSource.java b/src/main/java/com/zaxxer/hikari/HikariDataSource.java index aa6960ee..9f0c5ecd 100644 --- a/src/main/java/com/zaxxer/hikari/HikariDataSource.java +++ b/src/main/java/com/zaxxer/hikari/HikariDataSource.java @@ -30,7 +30,7 @@ import java.sql.SQLException; import java.sql.SQLFeatureNotSupportedException; import java.util.concurrent.atomic.AtomicBoolean; -import static com.zaxxer.hikari.pool.HikariPool.POOL_NORMAL; +import static com.zaxxer.hikari.pool.HikariPool.POOL_SHUTDOWN; /** * The HikariCP pooled DataSource. @@ -294,7 +294,7 @@ public class HikariDataSource extends HikariConfig implements DataSource, Closea */ public boolean isRunning() { - return pool != null && pool.poolState == POOL_NORMAL; + return pool != null && pool.poolState != POOL_SHUTDOWN; } /**