Make compiler log start counting permutations at 0 (again). This makes it consistend with everything else.
Review by: scottb
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7115 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java b/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java
index 93fbe54..fd3de93 100644
--- a/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java
+++ b/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java
@@ -249,9 +249,8 @@
List<Work> work = new ArrayList<Work>(permutations.length);
for (int i = 0; i < permutations.length; ++i) {
Permutation perm = permutations[i];
- int printId = perm.getId() + 1;
logger.log(TreeLogger.DEBUG,
- "Creating worker permutation " + printId + " of " + permutations.length);
+ "Creating worker permutation " + perm.getId() + " of " + permutations.length);
work.add(new Work(logger, perm, resultFiles.get(i)));
}
diff --git a/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java b/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
index 74a85be..c6e440c 100644
--- a/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
+++ b/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
@@ -216,8 +216,7 @@
PropertyOracle[] propertyOracles = permutation.getPropertyOracles();
int permutationId = permutation.getId();
Map<String, String> rebindAnswers = permutation.getRebindAnswers();
- int printId = permutationId + 1;
- logger.log(TreeLogger.INFO, "Compiling permutation " + printId + "...");
+ logger.log(TreeLogger.INFO, "Compiling permutation " + permutationId + "...");
long permStart = System.currentTimeMillis();
try {
if (JProgram.isTracingEnabled()) {