CharBufferImpl.java: Inline super constructor.
authorPer Bothner <per@bothner.com>
Mon, 16 Feb 2004 19:53:27 +0000 (11:53 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Mon, 16 Feb 2004 19:53:27 +0000 (11:53 -0800)
* 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

13 files changed:
libjava/ChangeLog
libjava/java/nio/CharBuffer.java
libjava/java/nio/CharBufferImpl.java
libjava/java/nio/DoubleBuffer.java
libjava/java/nio/DoubleBufferImpl.java
libjava/java/nio/FloatBuffer.java
libjava/java/nio/FloatBufferImpl.java
libjava/java/nio/IntBuffer.java
libjava/java/nio/IntBufferImpl.java
libjava/java/nio/LongBuffer.java
libjava/java/nio/LongBufferImpl.java
libjava/java/nio/ShortBuffer.java
libjava/java/nio/ShortBufferImpl.java

index e3239f8..42af297 100644 (file)
@@ -1,3 +1,18 @@
+2004-02-16  Per Bothner  <per@bothner.com>
+
+       * 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.
+
 2004-02-15  Ito Kazumitsu  <kaz@maczuka.gcd.org>
 
        * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
index 15a5357..3d488ba 100644 (file)
@@ -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.
    */
index d22b4d1..aacc2cb 100644 (file)
@@ -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;
   }
   
index 644f33b..d669c21 100644 (file)
@@ -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.
    */
index 8dacec9..2c425dc 100644 (file)
@@ -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;
   }
   
index 5fcfc8e..0c7b04d 100644 (file)
@@ -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.
    */
index db0f52b..0658413 100644 (file)
@@ -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;
   }
   
index 7916785..469a344 100644 (file)
@@ -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.
    */
index ec444c0..f142827 100644 (file)
@@ -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;
   }
   
index a39a83d..712e0b3 100644 (file)
@@ -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.
    */
index b4fb3de..7f99f33 100644 (file)
@@ -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;
   }
   
index 6bd3de9..61097d0 100644 (file)
@@ -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.
    */
index 5f6c601..938d5ce 100644 (file)
@@ -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;
   }