pull/539/head
Nitin 9 years ago
parent 85e41abf10
commit 64dd93fe8f

@ -776,8 +776,7 @@ public class HikariConfig implements HikariConfigMXBean
if (poolName == null) { if (poolName == null) {
poolName = "HikariPool-" + POOL_NUMBER.getAndIncrement(); poolName = "HikariPool-" + POOL_NUMBER.getAndIncrement();
} }
else if (isRegisterMbeans && poolName.contains(":")) {
if (poolName.contains(":") && isRegisterMbeans) {
throw new IllegalArgumentException("poolName cannot contain ':' when used with JMX"); throw new IllegalArgumentException("poolName cannot contain ':' when used with JMX");
} }

Loading…
Cancel
Save