directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
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 GMT
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 )
             {



Mime
View raw message