Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 10647 invoked from network); 11 Aug 2006 06:20:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 06:20:17 -0000 Received: (qmail 3105 invoked by uid 500); 11 Aug 2006 06:20:17 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 3073 invoked by uid 500); 11 Aug 2006 06:20:17 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 3062 invoked by uid 99); 11 Aug 2006 06:20:17 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 23:20:17 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id F3A131A981A; Thu, 10 Aug 2006 23:19:26 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r430689 - /directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java Date: Fri, 11 Aug 2006 06:19:26 -0000 To: commits@directory.apache.org From: trustin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060811061926.F3A131A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: trustin Date: Thu Aug 10 23:19:26 2006 New Revision: 430689 URL: http://svn.apache.org/viewvc?rev=430689&view=rev Log: Made sure getString(int, CharsetDecoder) in 0.8 is identical with that of 0.9. Modified: directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java Modified: directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java URL: http://svn.apache.org/viewvc/directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java?rev=430689&r1=430688&r2=430689&view=diff ============================================================================== --- directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java (original) +++ directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java Thu Aug 10 23:19:26 2006 @@ -1168,7 +1168,6 @@ throw new IllegalArgumentException( "fieldSize is not even." ); } - int i; int oldPos = buf.position(); int oldLimit = buf.limit(); int end = buf.position() + fieldSize; @@ -1177,6 +1176,8 @@ { throw new BufferUnderflowException(); } + + int i; if( !utf16 ) {