Skip to content

Commit 3d4f62f

Browse files
Thomas Darimontchristophstrobl
authored andcommitted
DATAREDIS-396 - Update Jedis driver to version 2.7.2.
Adapted sendCommand lookup in JedisConnection to honor the changed signature of redis.clients.jedis.Connection.sendCommand(Command, String…) to redis.clients.jedis.Connection.sendCommand(ProtocolCommand, String…). Original pull request: spring-projects#140.
1 parent ff37da5 commit 3d4f62f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
slf4jVersion=1.7.10
22
junitVersion=4.12
33
jredisVersion=06052013
4-
jedisVersion=2.7.0
4+
jedisVersion=2.7.2
55
springVersion=4.1.6.RELEASE
66
springDataBuildVersion=1.7.0.BUILD-SNAPSHOT
77
log4jVersion=1.2.17

src/main/java/org/springframework/data/redis/connection/jedis/JedisConnection.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011-2014 the original author or authors.
2+
* Copyright 2011-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -68,6 +68,7 @@
6868
import redis.clients.jedis.Pipeline;
6969
import redis.clients.jedis.Protocol;
7070
import redis.clients.jedis.Protocol.Command;
71+
import redis.clients.jedis.ProtocolCommand;
7172
import redis.clients.jedis.Queable;
7273
import redis.clients.jedis.Response;
7374
import redis.clients.jedis.ScanParams;
@@ -102,8 +103,8 @@ public class JedisConnection extends AbstractRedisConnection {
102103

103104
static {
104105
CLIENT_FIELD = ReflectionUtils.findField(BinaryJedis.class, "client", Client.class);
105-
ReflectionUtils.makeAccessible(CLIENT_FIELD);
106-
SEND_COMMAND = ReflectionUtils.findMethod(Connection.class, "sendCommand", new Class[] { Command.class,
106+
ReflectionUtils.makeAccessible(CLIENT_FIELD);
107+
SEND_COMMAND = ReflectionUtils.findMethod(Connection.class, "sendCommand", new Class[] { ProtocolCommand.class,
107108
byte[][].class });
108109
ReflectionUtils.makeAccessible(SEND_COMMAND);
109110
GET_RESPONSE = ReflectionUtils.findMethod(Queable.class, "getResponse", Builder.class);

0 commit comments

Comments
 (0)