+ remove some compiler warnings
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 (;;) {
|
||||
|
||||
@@ -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 (;;) {
|
||||
|
||||
Reference in New Issue
Block a user