ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/MapWordLoops.java
(Generate patch)

Comparing jsr166/src/test/loops/MapWordLoops.java (file contents):
Revision 1.5 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.6 by jsr166, Mon Nov 2 23:42:46 2009 UTC

# Line 28 | Line 28 | public class MapWordLoops {
28          Class mapClass = null;
29          try {
30              mapClass = Class.forName(args[0]);
31 <        } catch(ClassNotFoundException e) {
31 >        } catch (ClassNotFoundException e) {
32              throw new RuntimeException("Class " + args[0] + " not found.");
33          }
34  
# Line 70 | Line 70 | public class MapWordLoops {
70          try {
71              Map m = (Map<String,String>)cl.newInstance();
72              return m;
73 <        } catch(Exception e) {
73 >        } catch (Exception e) {
74              throw new RuntimeException("Can't instantiate " + cl + ": " + e);
75          }
76      }
77  
78      static void pause() {
79 <        try { Thread.sleep(100); } catch(InterruptedException ie) { return; }
79 >        try { Thread.sleep(100); }
80 >        catch (InterruptedException ie) { return; }
81      }
82  
83      static String[] readWords(int sizeIndex) throws IOException {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines