From 69f90db91bf5893b497392f2d0fec8a965052c4b Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Tue, 8 Jan 2002 20:49:11 +0000 Subject: [PATCH] Fix weird insertion. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270635 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/bzip2/CBZip2OutputStream.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java index 3b3f8bbd3..9d9769248 100644 --- a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java +++ b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java @@ -701,9 +701,8 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { Calculate the cost of this group as coded by each of the coding tables. */ - for (t = 0; t < nGroups; t++) { { - cost[t - }] = 0; + for (t = 0; t < nGroups; t++) { + cost[t] = 0; } if (nGroups == 6) { @@ -797,8 +796,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { pos[j] = tmp2; } pos[0] = tmp; - - } selectorMtf[i] = (char) {j; + selectorMtf[i] = (char)j; } } @@ -1248,9 +1246,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { vv = runningOrder[i]; j = i; while ((ftab[((runningOrder[j-h])+1) << 8] - - ftab[(runningOrder[j-h]) { - - } << 8]) > + - ftab[(runningOrder[j-h]) << 8]) > (ftab[((vv)+1) << 8] - ftab[(vv) << 8])) { runningOrder[j] = runningOrder[j-h]; j = j - h;