--- jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2009/11/16 04:57:10 1.11 +++ jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2009/11/16 05:30:07 1.12 @@ -15,7 +15,7 @@ public class AtomicLongFieldUpdaterTest int z; long w; - public static void main(String[] args){ + public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } public static Test suite() { @@ -25,7 +25,7 @@ public class AtomicLongFieldUpdaterTest /** * Construction with non-existent field throws RuntimeException */ - public void testConstructor(){ + public void testConstructor() { try { AtomicLongFieldUpdater a = AtomicLongFieldUpdater.newUpdater @@ -38,7 +38,7 @@ public class AtomicLongFieldUpdaterTest /** * construction with field not of given type throws RuntimeException */ - public void testConstructor2(){ + public void testConstructor2() { try { AtomicLongFieldUpdater a = AtomicLongFieldUpdater.newUpdater @@ -51,7 +51,7 @@ public class AtomicLongFieldUpdaterTest /** * construction with non-volatile field throws RuntimeException */ - public void testConstructor3(){ + public void testConstructor3() { try { AtomicLongFieldUpdater a = AtomicLongFieldUpdater.newUpdater @@ -65,7 +65,7 @@ public class AtomicLongFieldUpdaterTest /** * get returns the last value set or assigned */ - public void testGetSet(){ + public void testGetSet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -83,7 +83,7 @@ public class AtomicLongFieldUpdaterTest /** * get returns the last value lazySet by same thread */ - public void testGetLazySet(){ + public void testGetLazySet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -102,7 +102,7 @@ public class AtomicLongFieldUpdaterTest /** * compareAndSet succeeds in changing value if equal to expected else fails */ - public void testCompareAndSet(){ + public void testCompareAndSet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -153,7 +153,7 @@ public class AtomicLongFieldUpdaterTest * repeated weakCompareAndSet succeeds in changing value when equal * to expected */ - public void testWeakCompareAndSet(){ + public void testWeakCompareAndSet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -171,7 +171,7 @@ public class AtomicLongFieldUpdaterTest /** * getAndSet returns previous value and sets to given value */ - public void testGetAndSet(){ + public void testGetAndSet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -187,7 +187,7 @@ public class AtomicLongFieldUpdaterTest /** * getAndAdd returns previous value and adds given value */ - public void testGetAndAdd(){ + public void testGetAndAdd() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -204,7 +204,7 @@ public class AtomicLongFieldUpdaterTest /** * getAndDecrement returns previous value and decrements */ - public void testGetAndDecrement(){ + public void testGetAndDecrement() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -220,7 +220,7 @@ public class AtomicLongFieldUpdaterTest /** * getAndIncrement returns previous value and increments */ - public void testGetAndIncrement(){ + public void testGetAndIncrement() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -240,7 +240,7 @@ public class AtomicLongFieldUpdaterTest /** * addAndGet adds given value to current, and returns current value */ - public void testAddAndGet(){ + public void testAddAndGet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -257,7 +257,7 @@ public class AtomicLongFieldUpdaterTest /** * decrementAndGet decrements and returns current value */ - public void testDecrementAndGet(){ + public void testDecrementAndGet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x"); @@ -274,7 +274,7 @@ public class AtomicLongFieldUpdaterTest /** * incrementAndGet increments and returns current value */ - public void testIncrementAndGet(){ + public void testIncrementAndGet() { AtomicLongFieldUpdater a; try { a = AtomicLongFieldUpdater.newUpdater(AtomicLongFieldUpdaterTest.class, "x");