--- jsr166/src/test/tck/ThreadLocalRandomTest.java 2009/08/04 10:04:47 1.3 +++ jsr166/src/test/tck/ThreadLocalRandomTest.java 2009/12/01 06:47:14 1.6 @@ -11,10 +11,10 @@ import java.util.*; public class ThreadLocalRandomTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run (suite()); + junit.textui.TestRunner.run (suite()); } public static Test suite() { - return new TestSuite(ThreadLocalRandomTest.class); + return new TestSuite(ThreadLocalRandomTest.class); } /** @@ -42,8 +42,7 @@ public class ThreadLocalRandomTest exten try { ThreadLocalRandom.current().setSeed(17); shouldThrow(); - } catch (UnsupportedOperationException success) { - } + } catch (UnsupportedOperationException success) {} } /** @@ -119,10 +118,9 @@ public class ThreadLocalRandomTest exten */ public void testNextIntBoundedNeg() { try { - int f = ThreadLocalRandom.current().nextInt(-17); + int f = ThreadLocalRandom.current().nextInt(-17); shouldThrow(); - } catch (IllegalArgumentException success) { - } + } catch (IllegalArgumentException success) {} } /** @@ -130,10 +128,9 @@ public class ThreadLocalRandomTest exten */ public void testNextIntBadBounds() { try { - int f = ThreadLocalRandom.current().nextInt(17, 2); + int f = ThreadLocalRandom.current().nextInt(17, 2); shouldThrow(); - } catch (IllegalArgumentException success) { - } + } catch (IllegalArgumentException success) {} } @@ -184,10 +181,9 @@ public class ThreadLocalRandomTest exten */ public void testNextLongBoundedNeg() { try { - long f = ThreadLocalRandom.current().nextLong(-17); + long f = ThreadLocalRandom.current().nextLong(-17); shouldThrow(); - } catch (IllegalArgumentException success) { - } + } catch (IllegalArgumentException success) {} } /** @@ -195,10 +191,9 @@ public class ThreadLocalRandomTest exten */ public void testNextLongBadBounds() { try { - long f = ThreadLocalRandom.current().nextLong(17, 2); + long f = ThreadLocalRandom.current().nextLong(17, 2); shouldThrow(); - } catch (IllegalArgumentException success) { - } + } catch (IllegalArgumentException success) {} } /**