|
|
@ -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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|