--- jsr166/src/test/loops/CollectionWordLoops.java 2009/10/29 23:09:07 1.3 +++ jsr166/src/test/loops/CollectionWordLoops.java 2009/11/02 23:42:46 1.4 @@ -26,7 +26,7 @@ public class CollectionWordLoops { Class collectionClass = null; try { collectionClass = Class.forName(args[0]); - } catch(ClassNotFoundException e) { + } catch (ClassNotFoundException e) { throw new RuntimeException("Class " + args[0] + " not found."); } @@ -68,13 +68,14 @@ public class CollectionWordLoops { try { Collection m = (Collection)cl.newInstance(); return m; - } catch(Exception e) { + } catch (Exception e) { throw new RuntimeException("Can't instantiate " + cl + ": " + e); } } static void pause() { - try { Thread.sleep(100); } catch(InterruptedException ie) { return; } + try { Thread.sleep(100); } + catch (InterruptedException ie) { return; } } static String[] readWords(int sizeIndex) throws IOException {