+ remove more compiler warnings

This commit is contained in:
Costin Leau
2010-12-07 17:36:08 +02:00
parent 55ceaefd8d
commit e71af6cc74
2 changed files with 4 additions and 4 deletions

View File

@@ -331,7 +331,7 @@ public class JredisConnection implements RedisConnection {
@Override
public byte[] substr(byte[] key, long start, long end) {
try {
return jredis.substr(JredisUtils.decode(key), (long) start, (long) end);
return jredis.substr(JredisUtils.decode(key), start, end);
} catch (RedisException ex) {
throw JredisUtils.convertJredisAccessException(ex);
}
@@ -390,7 +390,7 @@ public class JredisConnection implements RedisConnection {
@Override
public byte[] lIndex(byte[] key, long index) {
try {
return jredis.lindex(JredisUtils.decode(key), (long) index);
return jredis.lindex(JredisUtils.decode(key), index);
} catch (RedisException ex) {
throw JredisUtils.convertJredisAccessException(ex);
}
@@ -694,7 +694,7 @@ public class JredisConnection implements RedisConnection {
@Override
public Set<byte[]> zRange(byte[] key, long start, long end) {
try {
return new LinkedHashSet<byte[]>(jredis.zrange(JredisUtils.decode(key), (long) start, (long) end));
return new LinkedHashSet<byte[]>(jredis.zrange(JredisUtils.decode(key), start, end));
} catch (RedisException ex) {
throw JredisUtils.convertJredisAccessException(ex);
}

View File

@@ -313,7 +313,7 @@ public class RedisTemplate<K, V> extends RedisAccessor implements RedisOperation
if (isEmpty(value)) {
return null;
}
return (T) serializer.deserialize(value);
return serializer.deserialize(value);
}
private static boolean isEmpty(byte[] data) {