Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SI-7484 Add @SupressWarning(rawtypes/unchecked)

  • Loading branch information...
commit cba29e69902eb5d4adbad386c7ed3dad3ccb49c3 1 parent be405ee
@soc soc authored
View
1  src/library/scala/collection/concurrent/CNodeBase.java
@@ -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;
View
1  src/library/scala/collection/concurrent/INodeBase.java
@@ -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();
View
2  src/library/scala/collection/concurrent/MainNode.java
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.