--- jsr166/src/test/loops/IteratorLoops.java 2009/11/03 01:04:02 1.7 +++ jsr166/src/test/loops/IteratorLoops.java 2015/01/15 18:34:19 1.12 @@ -1,7 +1,7 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ import java.util.*; @@ -14,7 +14,6 @@ import java.util.*; * and long iterators. Reports include times for adds and other * checks, so overestimate times per iteration. */ - public final class IteratorLoops { static final int DEFAULT_SIZE = 16384; static final int DEFAULT_TRIALS = 4; @@ -23,7 +22,7 @@ public final class IteratorLoops { static int randomSeed = 3122688; public static void main(String[] args) throws Exception { - Class klass = Class.forName(args[0]); + Class klass = Class.forName(args[0]); int n = (args.length <= 1) ? DEFAULT_SIZE : Integer.parseInt(args[1]); int t = (args.length <= 2) ? DEFAULT_TRIALS : Integer.parseInt(args[2]); @@ -74,7 +73,7 @@ public final class IteratorLoops { long traversals(int n) { long count = 0; long check = 0; - for (int i = 0; i < n; i++) { + for (int i = 0; i < n; i++) { check += elementCount; count += counts(); maybeAdd(); @@ -123,6 +122,4 @@ public final class IteratorLoops { try { Thread.sleep(500); } catch (Exception ex) { return; } } - - }