changeset 9899:249e76a97031

Supress warning in Compressed Oopt Test
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Wed, 05 Jun 2013 19:37:27 +0200
parents 2f72106d54c7
children f6a792c8e3ec
files graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java	Wed Jun 05 18:37:35 2013 +0200
+++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java	Wed Jun 05 19:37:27 2013 +0200
@@ -306,8 +306,8 @@
         return result;
     }
 
+    @SuppressWarnings("unchecked")
     public static void compareAndSwapTest(Object c1, Object c2, Object c3) throws ClassCastException {
-        @SuppressWarnings("unchecked")
         AtomicReference<Object> cas = (AtomicReference<Object>) c1;
         cas.compareAndSet(c2, c3);
     }