diff options
Diffstat (limited to 'libjava/classpath/java/nio/FloatBufferImpl.java')
-rw-r--r-- | libjava/classpath/java/nio/FloatBufferImpl.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libjava/classpath/java/nio/FloatBufferImpl.java b/libjava/classpath/java/nio/FloatBufferImpl.java index f1182ba38f3..5d0e7ca8590 100644 --- a/libjava/classpath/java/nio/FloatBufferImpl.java +++ b/libjava/classpath/java/nio/FloatBufferImpl.java @@ -43,18 +43,17 @@ package java.nio; */ final class FloatBufferImpl extends FloatBuffer { - private boolean readOnly; + private final boolean readOnly; FloatBufferImpl (int capacity) { this (new float [capacity], 0, capacity, capacity, 0, -1, false); } - FloatBufferImpl (float[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) + FloatBufferImpl (float[] buffer, int offset, int capacity, int limit, + int position, int mark, boolean readOnly) { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; + super (capacity, limit, position, mark, null, buffer, offset); this.readOnly = readOnly; } |