Permalink
Browse files

SI-7484 Add @SupressWarning(rawtypes/unchecked)

  • Loading branch information...
1 parent be405ee commit cba29e69902eb5d4adbad386c7ed3dad3ccb49c3 @soc soc committed Mar 10, 2013
@@ -16,6 +16,7 @@
abstract class CNodeBase<K, V> extends MainNode<K, V> {
+ @SuppressWarnings("rawtypes")
public static final AtomicIntegerFieldUpdater<CNodeBase> updater = AtomicIntegerFieldUpdater.newUpdater(CNodeBase.class, "csize");
public volatile int csize = -1;
@@ -16,6 +16,7 @@
abstract class INodeBase<K, V> extends BasicNode {
+ @SuppressWarnings("rawtypes")
public static final AtomicReferenceFieldUpdater<INodeBase, MainNode> updater = AtomicReferenceFieldUpdater.newUpdater(INodeBase.class, MainNode.class, "mainnode");
public static final Object RESTART = new Object();
@@ -16,6 +16,7 @@
abstract class MainNode<K, V> extends BasicNode {
+ @SuppressWarnings("rawtypes")
public static final AtomicReferenceFieldUpdater<MainNode, MainNode> updater = AtomicReferenceFieldUpdater.newUpdater(MainNode.class, MainNode.class, "prev");
public volatile MainNode<K, V> prev = null;
@@ -33,6 +34,7 @@ public void WRITE_PREV(MainNode<K, V> nval) {
// do we need this? unclear in the javadocs...
// apparently not - volatile reads are supposed to be safe
// irregardless of whether there are concurrent ARFU updates
+ @Deprecated @SuppressWarnings("unchecked")
public MainNode<K, V> READ_PREV() {
return updater.get(this);
}

0 comments on commit cba29e6

Please sign in to comment.