Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 46106 invoked from network); 6 Feb 2009 16:09:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 16:09:20 -0000 Received: (qmail 90697 invoked by uid 500); 6 Feb 2009 16:09:19 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 90672 invoked by uid 500); 6 Feb 2009 16:09:19 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 90663 invoked by uid 99); 6 Feb 2009 16:09:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 08:09:19 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 16:09:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D077323889B7; Fri, 6 Feb 2009 16:08:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r741608 - /ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java Date: Fri, 06 Feb 2009 16:08:56 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090206160856.D077323889B7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Fri Feb 6 16:08:55 2009 New Revision: 741608 URL: http://svn.apache.org/viewvc?rev=741608&view=rev Log: provide a finish method separate from close - merge from commons-compress Modified: ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java Modified: ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java?rev=741608&r1=741607&r2=741608&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java (original) +++ ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java Fri Feb 6 16:08:55 2009 @@ -571,7 +571,7 @@ int v, t, i, j, gs, ge, totc, bt, bc, iter; int nSelectors = 0, alphaSize, minLen, maxLen, selCtr; - int nGroups, nBytes; + int nGroups; //, nBytes; alphaSize = nInUse + 2; for (t = 0; t < N_GROUPS; t++) { @@ -802,7 +802,7 @@ } } - nBytes = bytesOut; + //nBytes = bytesOut; for (i = 0; i < 16; i++) { if (inUse16[i]) { bsW(1, 1); @@ -826,7 +826,7 @@ } /* Now the selectors. */ - nBytes = bytesOut; + //nBytes = bytesOut; bsW (3, nGroups); bsW (15, nSelectors); for (i = 0; i < nSelectors; i++) { @@ -837,7 +837,7 @@ } /* Now the coding tables. */ - nBytes = bytesOut; + //nBytes = bytesOut; for (t = 0; t < nGroups; t++) { int curr = len[t][0]; @@ -856,7 +856,7 @@ } /* And finally, the block data proper */ - nBytes = bytesOut; + //nBytes = bytesOut; selCtr = 0; gs = 0; while (true) {