summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/ByteBufferImpl.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-11 10:30:52 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-11 10:30:52 +0000
commit5b96913c1614d37f446d926b2050532728d65b93 (patch)
tree4ef30ee00b28507236135a22d7c2c45687ab7248 /libjava/gnu/java/nio/ByteBufferImpl.java
parentb69139c7db8553e71590350641ddd578cfff98e2 (diff)
downloadppe42-gcc-5b96913c1614d37f446d926b2050532728d65b93.tar.gz
ppe42-gcc-5b96913c1614d37f446d926b2050532728d65b93.zip
2003-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java (putInt): Use limit() instead of limit. * gnu/java/nio/CharBufferImpl.java (slice): Fixed implementation. (subSequence): Better bounds checking. * gnu/java/nio/MappedByteFileBuffer.java: Import all needed classes directly. * java/nio/ByteBuffer.java (hashCode): New dummy method. * java/nio/CharBuffer.java (array_offset): New member variable. (hasArray): Fixed documentation. (arrayOffset): Return array_offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64165 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/ByteBufferImpl.java')
-rw-r--r--libjava/gnu/java/nio/ByteBufferImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/java/nio/ByteBufferImpl.java b/libjava/gnu/java/nio/ByteBufferImpl.java
index 149dc1c9683..342f3316a70 100644
--- a/libjava/gnu/java/nio/ByteBufferImpl.java
+++ b/libjava/gnu/java/nio/ByteBufferImpl.java
@@ -320,7 +320,7 @@ public final class ByteBufferImpl extends ByteBuffer
if (readOnly)
throw new ReadOnlyBufferException ();
- nio_put_Short (this, position (), limit(), value);
+ nio_put_Short (this, position (), limit (), value);
inc_pos (2);
return this;
}
@@ -352,7 +352,7 @@ public final class ByteBufferImpl extends ByteBuffer
if (readOnly)
throw new ReadOnlyBufferException ();
- nio_put_Int (this, position (), limit , value);
+ nio_put_Int (this, position (), limit (), value);
inc_pos (4);
return this;
}
OpenPOWER on IntegriCloud