From 9fb63cdd3fd31d091895efa09c66bac26c073322 Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Thu, 9 Jan 2014 17:20:10 +0900 Subject: [PATCH] Minor cleanup. --- core/src/main/java/com/zaxxer/hikari/HikariPool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/zaxxer/hikari/HikariPool.java b/core/src/main/java/com/zaxxer/hikari/HikariPool.java index 874b8cbb..e0d3156f 100644 --- a/core/src/main/java/com/zaxxer/hikari/HikariPool.java +++ b/core/src/main/java/com/zaxxer/hikari/HikariPool.java @@ -89,7 +89,7 @@ public final class HikariPool implements HikariPoolMBean } catch (Exception e) { - throw new RuntimeException("Could not create datasource class: " + dsClassName, e); + throw new RuntimeException("Could not create datasource instance: " + dsClassName, e); } HikariMBeanElf.registerMBeans(configuration, this); @@ -268,7 +268,7 @@ public final class HikariPool implements HikariPoolMBean /** * Add connections to the pool, not exceeding the maximum allowed. */ - private synchronized void addConnections(AddConnectionStrategy strategy) + private void addConnections(AddConnectionStrategy strategy) { switch (strategy) { @@ -328,7 +328,7 @@ public final class HikariPool implements HikariPoolMBean boolean alive = isConnectionAlive((Connection) proxyConnection, configuration.getConnectionTimeout()); if (!alive) { - // This will be caught below + // This will be caught below... throw new RuntimeException("Connection not alive, retry."); }