From ed80e7ce706297b3507c2f2bb2629489df138bcd Mon Sep 17 00:00:00 2001 From: Hisham Mardam-Bey Date: Wed, 21 Aug 2013 00:06:30 -0400 Subject: [PATCH] Allow the Pool to be constructed without having an internal pool created. This is useful when extending the Pool without being able to create one at construction time. --- src/main/java/redis/clients/util/Pool.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/redis/clients/util/Pool.java b/src/main/java/redis/clients/util/Pool.java index ab21d30..522fa01 100644 --- a/src/main/java/redis/clients/util/Pool.java +++ b/src/main/java/redis/clients/util/Pool.java @@ -9,7 +9,11 @@ import redis.clients.jedis.exceptions.JedisException; public abstract class Pool { protected GenericObjectPool internalPool; - protected Pool() { + /** + * Using this constructor means you have to set + * the internalPool yourself. + */ + public Pool() { this.internalPool = null; }