--- jsr166/src/test/tck/PriorityBlockingQueueTest.java 2009/11/16 04:57:10 1.13 +++ jsr166/src/test/tck/PriorityBlockingQueueTest.java 2009/11/16 05:30:08 1.14 @@ -305,7 +305,7 @@ public class PriorityBlockingQueueTest e q.put(null); shouldThrow(); } - catch (NullPointerException success){ + catch (NullPointerException success) { } } @@ -354,7 +354,7 @@ public class PriorityBlockingQueueTest e q.take(); t.interrupt(); t.join(); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } } @@ -380,7 +380,7 @@ public class PriorityBlockingQueueTest e Thread.sleep(SMALL_DELAY_MS); t.interrupt(); t.join(); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } } @@ -394,7 +394,7 @@ public class PriorityBlockingQueueTest e for (int i = 0; i < SIZE; ++i) { assertEquals(i, ((Integer)q.take()).intValue()); } - } catch (InterruptedException e){ + } catch (InterruptedException e) { unexpectedException(); } } @@ -409,7 +409,7 @@ public class PriorityBlockingQueueTest e try { q.take(); threadShouldThrow(); - } catch (InterruptedException success){ } + } catch (InterruptedException success) { } } }); try { @@ -417,7 +417,7 @@ public class PriorityBlockingQueueTest e Thread.sleep(SHORT_DELAY_MS); t.interrupt(); t.join(); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } } @@ -435,7 +435,7 @@ public class PriorityBlockingQueueTest e } q.take(); threadShouldThrow(); - } catch (InterruptedException success){ + } catch (InterruptedException success) { } }}); t.start(); @@ -471,7 +471,7 @@ public class PriorityBlockingQueueTest e assertEquals(i, ((Integer)q.poll(0, TimeUnit.MILLISECONDS)).intValue()); } assertNull(q.poll(0, TimeUnit.MILLISECONDS)); - } catch (InterruptedException e){ + } catch (InterruptedException e) { unexpectedException(); } } @@ -486,7 +486,7 @@ public class PriorityBlockingQueueTest e assertEquals(i, ((Integer)q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS)).intValue()); } assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); - } catch (InterruptedException e){ + } catch (InterruptedException e) { unexpectedException(); } } @@ -504,7 +504,7 @@ public class PriorityBlockingQueueTest e threadAssertEquals(i, ((Integer)q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS)).intValue()); } threadAssertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); - } catch (InterruptedException success){ + } catch (InterruptedException success) { } }}); t.start(); @@ -540,7 +540,7 @@ public class PriorityBlockingQueueTest e assertTrue(q.offer(new Integer(0), SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); t.interrupt(); t.join(); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } } @@ -587,7 +587,7 @@ public class PriorityBlockingQueueTest e try { q.remove(); shouldThrow(); - } catch (NoSuchElementException success){ + } catch (NoSuchElementException success) { } } @@ -692,7 +692,7 @@ public class PriorityBlockingQueueTest e try { for (int i = 0; i < o.length; i++) assertEquals(o[i], q.take()); - } catch (InterruptedException e){ + } catch (InterruptedException e) { unexpectedException(); } } @@ -708,7 +708,7 @@ public class PriorityBlockingQueueTest e try { for (int i = 0; i < ints.length; i++) assertEquals(ints[i], q.take()); - } catch (InterruptedException e){ + } catch (InterruptedException e) { unexpectedException(); } } @@ -721,7 +721,7 @@ public class PriorityBlockingQueueTest e PriorityBlockingQueue q = populatedQueue(SIZE); Object o[] = q.toArray(null); shouldThrow(); - } catch (NullPointerException success){} + } catch (NullPointerException success) {} } /** @@ -732,7 +732,7 @@ public class PriorityBlockingQueueTest e PriorityBlockingQueue q = populatedQueue(SIZE); Object o[] = q.toArray(new String[10] ); shouldThrow(); - } catch (ArrayStoreException success){} + } catch (ArrayStoreException success) {} } /** @@ -831,7 +831,7 @@ public class PriorityBlockingQueueTest e assertEquals(q.size(), r.size()); while (!q.isEmpty()) assertEquals(q.remove(), r.remove()); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } } @@ -903,7 +903,7 @@ public class PriorityBlockingQueueTest e assertEquals(l.get(i), new Integer(i)); t.join(); assertTrue(q.size() + l.size() >= SIZE); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } }