Fixed - RedisTemplate.radius and RedisConnection.geoRadius throw IllegalArgumentException during response decoding. #2093

pull/2122/head
Nikita Koksharov 6 years ago
parent 83f10b120c
commit 355b25a4b4

@ -64,7 +64,7 @@ public class GeoResultsDecoder implements MultiDecoder<GeoResults<GeoLocation<by
result.add(new GeoResult<GeoLocation<byte[]>>(location, new Distance((Double)vals.get(1), metric)));
} else {
GeoLocation<byte[]> location = new GeoLocation<byte[]>((byte[])vals.get(0), (Point)vals.get(1));
result.add(new GeoResult<GeoLocation<byte[]>>(location, null));
result.add(new GeoResult<GeoLocation<byte[]>>(location, new Distance(0)));
}
} else {
GeoLocation<byte[]> location = new GeoLocation<byte[]>((byte[])object, null);

@ -64,7 +64,7 @@ public class GeoResultsDecoder implements MultiDecoder<GeoResults<GeoLocation<by
result.add(new GeoResult<GeoLocation<byte[]>>(location, new Distance((Double)vals.get(1), metric)));
} else {
GeoLocation<byte[]> location = new GeoLocation<byte[]>((byte[])vals.get(0), (Point)vals.get(1));
result.add(new GeoResult<GeoLocation<byte[]>>(location, null));
result.add(new GeoResult<GeoLocation<byte[]>>(location, new Distance(0)));
}
} else {
GeoLocation<byte[]> location = new GeoLocation<byte[]>((byte[])object, null);

@ -64,7 +64,7 @@ public class GeoResultsDecoder implements MultiDecoder<GeoResults<GeoLocation<by
result.add(new GeoResult<GeoLocation<byte[]>>(location, new Distance((Double)vals.get(1), metric)));
} else {
GeoLocation<byte[]> location = new GeoLocation<byte[]>((byte[])vals.get(0), (Point)vals.get(1));
result.add(new GeoResult<GeoLocation<byte[]>>(location, null));
result.add(new GeoResult<GeoLocation<byte[]>>(location, new Distance(0)));
}
} else {
GeoLocation<byte[]> location = new GeoLocation<byte[]>((byte[])object, null);

Loading…
Cancel
Save