--- jsr166/src/test/tck/AtomicStampedReferenceTest.java 2009/12/01 09:56:28 1.14 +++ jsr166/src/test/tck/AtomicStampedReferenceTest.java 2010/10/09 19:30:34 1.16 @@ -10,8 +10,8 @@ import junit.framework.*; import java.util.concurrent.atomic.*; public class AtomicStampedReferenceTest extends JSR166TestCase { - public static void main (String[] args) { - junit.textui.TestRunner.run (suite()); + public static void main(String[] args) { + junit.textui.TestRunner.run(suite()); } public static Test suite() { return new TestSuite(AtomicStampedReferenceTest.class); @@ -30,7 +30,7 @@ public class AtomicStampedReferenceTest } /** - * get returns the last values of reference and stamp set + * get returns the last values of reference and stamp set */ public void testGetSet() { int[] mark = new int[1]; @@ -52,7 +52,7 @@ public class AtomicStampedReferenceTest } /** - * attemptStamp succeeds in single thread + * attemptStamp succeeds in single thread */ public void testAttemptStamp() { int[] mark = new int[1]; @@ -136,7 +136,7 @@ public class AtomicStampedReferenceTest int[] mark = new int[1]; AtomicStampedReference ai = new AtomicStampedReference(one, 0); assertSame(one, ai.get(mark)); - assertEquals(0, ai.getStamp ()); + assertEquals(0, ai.getStamp()); assertEquals(0, mark[0]); while (!ai.weakCompareAndSet(one, two, 0, 0));