Skip to content

Commit

Permalink
remove unnecessary generic type causing problems with certain java ve…
Browse files Browse the repository at this point in the history
…rsions.
  • Loading branch information
michaeloffner committed Jul 15, 2024
1 parent d3d94da commit 52fd6c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.lucee</groupId>
<artifactId>redis-extension</artifactId>
<version>3.0.0.59-SNAPSHOT</version>
<version>3.0.0.60-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Redis Extension</name>

Expand Down
14 changes: 4 additions & 10 deletions source/java/src/lucee/extension/io/cache/redis/Redis.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 <T> The expected result type
* @return Result of redis.
* @throws IOException All protocol and io errors are IO exceptions.
* @throws PageException
*/
public <T> T call(Object... args) throws IOException {
public Object call(Object... args) throws IOException {

// has keys?
boolean hasKeys = false;
Expand Down Expand Up @@ -356,14 +355,9 @@ else if (o instanceof List) {

/**
* Does a blocking read to wait for redis to send data.
*
* @param <T> The expected result type.
* @return Result of redis
* @throws IOException Propagated
* @throws PageException
*/
public <T> T read() throws IOException {
return (T) reader.parse();
public Object read() throws IOException {
return reader.parse();
}

/**
Expand All @@ -385,7 +379,7 @@ public static abstract class Pipeline {
* @return The responses
* @throws IOException Propagated from underlying server.
*/
public abstract <T> List<T> read() throws IOException;
public abstract List read() throws IOException;

}

Expand Down

0 comments on commit 52fd6c6

Please sign in to comment.