--- jsr166/src/test/tck/ThreadLocalRandomTest.java 2009/11/21 02:07:27 1.4 +++ jsr166/src/test/tck/ThreadLocalRandomTest.java 2010/08/25 00:07:03 1.7 @@ -11,7 +11,7 @@ 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); @@ -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) {} } /**