--- jsr166/src/test/loops/SetBash.java 2005/05/02 19:19:38 1.1 +++ jsr166/src/test/loops/SetBash.java 2010/09/01 07:47:27 1.6 @@ -1,126 +1,131 @@ +/* + * Written by Doug Lea and Josh Bloch with assistance from members of + * JCP JSR-166 Expert Group and released to the public domain, as + * explained at http://creativecommons.org/licenses/publicdomain + */ import java.util.*; public class SetBash { static Random rnd = new Random(); public static void main(String[] args) { - int numItr = Integer.parseInt(args[1]); - int setSize = Integer.parseInt(args[2]); - Class cl = null; - - try { - cl = Class.forName(args[0]); - } catch(ClassNotFoundException e) { - fail("Class " + args[0] + " not found."); - } + int numItr = Integer.parseInt(args[1]); + int setSize = Integer.parseInt(args[2]); + Class cl = null; + + try { + cl = Class.forName(args[0]); + } catch (ClassNotFoundException e) { + fail("Class " + args[0] + " not found."); + } boolean synch = (args.length>3); - for (int i=0; i