From bc266ae1fae76e8316d314dc6d249e8e442ddd7f Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Sun, 30 Oct 2022 00:10:56 +0400 Subject: [PATCH] Update javadocs for Jedis Cluster/Pooled instances --- .../minecraft/redisbungee/AbstractRedisBungeeAPI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java index f24c6fa..901d905 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java @@ -410,8 +410,8 @@ public abstract class AbstractRedisBungeeAPI { } /** - * This gives you instance of JedisCluster - * WARNING DO NOT USE {@link JedisCluster#close()} it will break the functionally + * This gives you an instance of JedisCluster that can't be closed + * see {@link com.imaginarycode.minecraft.redisbungee.api.summoners.NotClosableJedisCluster} * * @return {@link redis.clients.jedis.JedisCluster} * @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#CLUSTER} @@ -426,8 +426,8 @@ public abstract class AbstractRedisBungeeAPI { } /** - * This gives you instance of JedisPooled - * WARNING: DO NOT USE {@link redis.clients.jedis.JedisPooled#close()} it will break the functionally + * This gives you an instance of JedisPooled that can't be closed + * see {@link com.imaginarycode.minecraft.redisbungee.api.summoners.NotClosableJedisPooled} * * @return {@link redis.clients.jedis.JedisPooled} * @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#SINGLE}