diff options
author | Per Bothner <per@bothner.com> | 2004-02-16 11:53:27 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-02-16 11:53:27 -0800 |
commit | cf68bacaadccff4197ad92016c58c07c7c37f9c0 (patch) | |
tree | b309290cd0061a0bbe493fb02aa73625d184bf72 /libjava/java/nio | |
parent | 3e9b6cf4e0ce78a26e08186c060496909a2774e3 (diff) | |
download | gcc-cf68bacaadccff4197ad92016c58c07c7c37f9c0.zip gcc-cf68bacaadccff4197ad92016c58c07c7c37f9c0.tar.gz gcc-cf68bacaadccff4197ad92016c58c07c7c37f9c0.tar.bz2 |
CharBufferImpl.java: Inline super constructor.
* java/nio/CharBufferImpl.java: Inline super constructor.
* java/nio/DoubleBufferImpl.java: Likewise.
* java/nio/FloatBufferImpl.java: Likewise.
* java/nio/IntBufferImpl.java: Likewise.
* java/nio/LongBufferImpl.java: Likewise.
* java/nio/ShortBufferImpl.java: Likewise.
* java/nio/CharBuffer.java: Remove unused constructor.
* java/nio/DoubleBuffer.java: Likewise.
* java/nio/FloatBuffer.java: Likewise.
* java/nio/IntBuffer.java: Likewise.
* java/nio/LongBuffer.java: Likewise.
* java/nio/ShortBuffer.java: Likewise.
From-SVN: r77916
Diffstat (limited to 'libjava/java/nio')
-rw-r--r-- | libjava/java/nio/CharBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/CharBufferImpl.java | 4 | ||||
-rw-r--r-- | libjava/java/nio/DoubleBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/DoubleBufferImpl.java | 4 | ||||
-rw-r--r-- | libjava/java/nio/FloatBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/FloatBufferImpl.java | 4 | ||||
-rw-r--r-- | libjava/java/nio/IntBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/IntBufferImpl.java | 4 | ||||
-rw-r--r-- | libjava/java/nio/LongBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/LongBufferImpl.java | 4 | ||||
-rw-r--r-- | libjava/java/nio/ShortBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/ShortBufferImpl.java | 4 |
12 files changed, 18 insertions, 48 deletions
diff --git a/libjava/java/nio/CharBuffer.java b/libjava/java/nio/CharBuffer.java index 15a5357..3d488ba 100644 --- a/libjava/java/nio/CharBuffer.java +++ b/libjava/java/nio/CharBuffer.java @@ -53,13 +53,6 @@ public abstract class CharBuffer extends Buffer array_offset = 0; } - CharBuffer (char[] buffer, int offset, int capacity, int limit, int position, int mark) - { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; - } - /** * Allocates a new <code>CharBuffer</code> object with a given capacity. */ diff --git a/libjava/java/nio/CharBufferImpl.java b/libjava/java/nio/CharBufferImpl.java index d22b4d1..aacc2cb 100644 --- a/libjava/java/nio/CharBufferImpl.java +++ b/libjava/java/nio/CharBufferImpl.java @@ -52,7 +52,9 @@ final class CharBufferImpl extends CharBuffer CharBufferImpl (char[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { - super (buffer, offset, capacity, limit, position, mark); + super (capacity, limit, position, mark); + this.backing_buffer = buffer; + this.array_offset = offset; this.readOnly = readOnly; } diff --git a/libjava/java/nio/DoubleBuffer.java b/libjava/java/nio/DoubleBuffer.java index 644f33b..d669c21 100644 --- a/libjava/java/nio/DoubleBuffer.java +++ b/libjava/java/nio/DoubleBuffer.java @@ -53,13 +53,6 @@ public abstract class DoubleBuffer extends Buffer array_offset = 0; } - DoubleBuffer (double[] buffer, int offset, int capacity, int limit, int position, int mark) - { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; - } - /** * Allocates a new <code>DoubleBuffer</code> object with a given capacity. */ diff --git a/libjava/java/nio/DoubleBufferImpl.java b/libjava/java/nio/DoubleBufferImpl.java index 8dacec9..2c425dc 100644 --- a/libjava/java/nio/DoubleBufferImpl.java +++ b/libjava/java/nio/DoubleBufferImpl.java @@ -52,7 +52,9 @@ final class DoubleBufferImpl extends DoubleBuffer DoubleBufferImpl (double[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { - super (buffer, offset, capacity, limit, position, mark); + super (capacity, limit, position, mark); + this.backing_buffer = buffer; + this.array_offset = offset; this.readOnly = readOnly; } diff --git a/libjava/java/nio/FloatBuffer.java b/libjava/java/nio/FloatBuffer.java index 5fcfc8e..0c7b04d 100644 --- a/libjava/java/nio/FloatBuffer.java +++ b/libjava/java/nio/FloatBuffer.java @@ -53,13 +53,6 @@ public abstract class FloatBuffer extends Buffer array_offset = 0; } - FloatBuffer (float[] buffer, int offset, int capacity, int limit, int position, int mark) - { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; - } - /** * Allocates a new <code>FloatBuffer</code> object with a given capacity. */ diff --git a/libjava/java/nio/FloatBufferImpl.java b/libjava/java/nio/FloatBufferImpl.java index db0f52b..0658413 100644 --- a/libjava/java/nio/FloatBufferImpl.java +++ b/libjava/java/nio/FloatBufferImpl.java @@ -52,7 +52,9 @@ final class FloatBufferImpl extends FloatBuffer FloatBufferImpl (float[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { - super (buffer, offset, capacity, limit, position, mark); + super (capacity, limit, position, mark); + this.backing_buffer = buffer; + this.array_offset = offset; this.readOnly = readOnly; } diff --git a/libjava/java/nio/IntBuffer.java b/libjava/java/nio/IntBuffer.java index 7916785..469a344 100644 --- a/libjava/java/nio/IntBuffer.java +++ b/libjava/java/nio/IntBuffer.java @@ -53,13 +53,6 @@ public abstract class IntBuffer extends Buffer array_offset = 0; } - IntBuffer (int[] buffer, int offset, int capacity, int limit, int position, int mark) - { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; - } - /** * Allocates a new <code>IntBuffer</code> object with a given capacity. */ diff --git a/libjava/java/nio/IntBufferImpl.java b/libjava/java/nio/IntBufferImpl.java index ec444c0..f142827 100644 --- a/libjava/java/nio/IntBufferImpl.java +++ b/libjava/java/nio/IntBufferImpl.java @@ -52,7 +52,9 @@ final class IntBufferImpl extends IntBuffer IntBufferImpl (int[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { - super (buffer, offset, capacity, limit, position, mark); + super (capacity, limit, position, mark); + this.backing_buffer = buffer; + this.array_offset = offset; this.readOnly = readOnly; } diff --git a/libjava/java/nio/LongBuffer.java b/libjava/java/nio/LongBuffer.java index a39a83d..712e0b3 100644 --- a/libjava/java/nio/LongBuffer.java +++ b/libjava/java/nio/LongBuffer.java @@ -53,13 +53,6 @@ public abstract class LongBuffer extends Buffer array_offset = 0; } - LongBuffer (long[] buffer, int offset, int capacity, int limit, int position, int mark) - { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; - } - /** * Allocates a new <code>LongBuffer</code> object with a given capacity. */ diff --git a/libjava/java/nio/LongBufferImpl.java b/libjava/java/nio/LongBufferImpl.java index b4fb3de5..7f99f33 100644 --- a/libjava/java/nio/LongBufferImpl.java +++ b/libjava/java/nio/LongBufferImpl.java @@ -52,7 +52,9 @@ final class LongBufferImpl extends LongBuffer LongBufferImpl (long[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { - super (buffer, offset, capacity, limit, position, mark); + super (capacity, limit, position, mark); + this.backing_buffer = buffer; + this.array_offset = offset; this.readOnly = readOnly; } diff --git a/libjava/java/nio/ShortBuffer.java b/libjava/java/nio/ShortBuffer.java index 6bd3de9..61097d0 100644 --- a/libjava/java/nio/ShortBuffer.java +++ b/libjava/java/nio/ShortBuffer.java @@ -53,13 +53,6 @@ public abstract class ShortBuffer extends Buffer array_offset = 0; } - ShortBuffer (short[] buffer, int offset, int capacity, int limit, int position, int mark) - { - super (capacity, limit, position, mark); - this.backing_buffer = buffer; - this.array_offset = offset; - } - /** * Allocates a new <code>ShortBuffer</code> object with a given capacity. */ diff --git a/libjava/java/nio/ShortBufferImpl.java b/libjava/java/nio/ShortBufferImpl.java index 5f6c601..938d5ce 100644 --- a/libjava/java/nio/ShortBufferImpl.java +++ b/libjava/java/nio/ShortBufferImpl.java @@ -52,7 +52,9 @@ final class ShortBufferImpl extends ShortBuffer ShortBufferImpl (short[] buffer, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { - super (buffer, offset, capacity, limit, position, mark); + super (capacity, limit, position, mark); + this.backing_buffer = buffer; + this.array_offset = offset; this.readOnly = readOnly; } |