You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2006/08/11 08:19:26 UTC
svn commit: r430689 -
/directory/branches/mina/0.8/src/java/org/apache/mina/common/ByteBuffer.java
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 )
{