From 52fd6c6e5a8dab306800c9dd02de1dea49db2377 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Mon, 15 Jul 2024 13:57:12 +0200 Subject: [PATCH] remove unnecessary generic type causing problems with certain java versions. --- pom.xml | 2 +- .../src/lucee/extension/io/cache/redis/Redis.java | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 23ae2f9..deb151c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.lucee redis-extension - 3.0.0.59-SNAPSHOT + 3.0.0.60-SNAPSHOT pom Redis Extension diff --git a/source/java/src/lucee/extension/io/cache/redis/Redis.java b/source/java/src/lucee/extension/io/cache/redis/Redis.java index d96c07d..37c6a58 100644 --- a/source/java/src/lucee/extension/io/cache/redis/Redis.java +++ b/source/java/src/lucee/extension/io/cache/redis/Redis.java @@ -316,12 +316,11 @@ public Socket getSocket() { * Execute a Redis command and return it's result. * * @param args Command and arguments to pass into redis. - * @param The expected result type * @return Result of redis. * @throws IOException All protocol and io errors are IO exceptions. * @throws PageException */ - public T call(Object... args) throws IOException { + public Object call(Object... args) throws IOException { // has keys? boolean hasKeys = false; @@ -356,14 +355,9 @@ else if (o instanceof List) { /** * Does a blocking read to wait for redis to send data. - * - * @param The expected result type. - * @return Result of redis - * @throws IOException Propagated - * @throws PageException */ - public T read() throws IOException { - return (T) reader.parse(); + public Object read() throws IOException { + return reader.parse(); } /** @@ -385,7 +379,7 @@ public static abstract class Pipeline { * @return The responses * @throws IOException Propagated from underlying server. */ - public abstract List read() throws IOException; + public abstract List read() throws IOException; }