--- jsr166/src/test/loops/CollectionWordLoops.java 2009/10/29 23:09:07 1.3 +++ jsr166/src/test/loops/CollectionWordLoops.java 2009/11/02 23:51:32 1.5 @@ -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."); } @@ -66,15 +66,16 @@ public class CollectionWordLoops { static Collection newCollection(Class cl) { try { - Collection m = (Collection)cl.newInstance(); + 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 {