+ remove some compiler warnings

This commit is contained in:
Costin Leau
2011-01-31 13:28:06 +02:00
parent 7f6f8a2392
commit fc42dc76ba
3 changed files with 3 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ abstract class CASUtils {
public static <T, K, V> T execute(final RedisOperations<K, V> ops, final K key, final Callable<T> callback) {
return ops.execute(new SessionCallback<T>() {
@SuppressWarnings("unchecked")
@Override
public T execute(RedisOperations operations) {
try {

View File

@@ -150,6 +150,7 @@ public class RedisAtomicInteger extends Number implements Serializable, KeyBound
public boolean compareAndSet(final int expect, final int update) {
return generalOps.execute(new SessionCallback<Boolean>() {
@SuppressWarnings("unchecked")
@Override
public Boolean execute(RedisOperations operations) {
for (;;) {

View File

@@ -151,6 +151,7 @@ public class RedisAtomicLong extends Number implements Serializable, KeyBound<St
public boolean compareAndSet(final long expect, final long update) {
return generalOps.execute(new SessionCallback<Boolean>() {
@SuppressWarnings("unchecked")
@Override
public Boolean execute(RedisOperations operations) {
for (;;) {