summaryrefslogtreecommitdiff
path: root/java/nio/ByteBufferImpl.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-05-03 21:33:24 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-05-03 21:33:24 +0000
commit940e4db75683240c9a097b812e973e1009ab56c4 (patch)
treef8ccf9d28d0187f82242548af232ada92f68a61f /java/nio/ByteBufferImpl.java
parent480ccb4bfcc622c1ce320c20ce992188187f7573 (diff)
downloadclasspath-940e4db75683240c9a097b812e973e1009ab56c4.tar.gz
2006-05-03 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge of HEAD --> generics-branch for the period 2005/05/01 to 2005/05/03 (branch of 0.91 for release)
Diffstat (limited to 'java/nio/ByteBufferImpl.java')
-rw-r--r--java/nio/ByteBufferImpl.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/java/nio/ByteBufferImpl.java b/java/nio/ByteBufferImpl.java
index 48d715200..cbe627b06 100644
--- a/java/nio/ByteBufferImpl.java
+++ b/java/nio/ByteBufferImpl.java
@@ -120,13 +120,8 @@ final class ByteBufferImpl extends ByteBuffer
int count = remaining();
shiftDown(0, pos, count);
position(count);
- limit(capacity());
- }
- else
- {
- position(limit());
- limit(capacity());
}
+ limit(capacity());
return this;
}