From 1226b900dcbeb401dda3331cb4fb2d44393859e5 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Fri, 27 Jun 2003 13:34:12 +0000 Subject: [PATCH] 2003-06-27 Michael Koch * java/nio/ByteBufferImpl.java (ByteBufferImpl): Made it a package-private class * java/nio/CharBufferImpl.java (CharBufferImpl): Made it a package-private class * java/nio/DirectByteBufferImpl.java (DirectByteBufferImpl): Made it a package-private class * java/nio/DoubleBufferImpl.java (DoubleBufferImpl): Made it a package-private class * java/nio/FloatBufferImpl.java (FloatBufferImpl): Made it a package-private class * java/nio/IntBufferImpl.java (IntBufferImpl): Made it a package-private class * java/nio/LongBufferImpl.java (LongBufferImpl): Made it a package-private class * java/nio/ShortBufferImpl.java (ShortBufferImpl): Made it a package-private class * java/nio/channels/FileChannel.java (write): Made final. * java/nio/channels/ServerSocketChannel.java (ServerSocketChanne): Made protected. From-SVN: r68571 --- libjava/ChangeLog | 23 +++++++++++++++++++ libjava/java/nio/ByteBufferImpl.java | 2 +- libjava/java/nio/CharBufferImpl.java | 2 +- libjava/java/nio/DirectByteBufferImpl.java | 2 +- libjava/java/nio/DoubleBufferImpl.java | 2 +- libjava/java/nio/FloatBufferImpl.java | 2 +- libjava/java/nio/IntBufferImpl.java | 2 +- libjava/java/nio/LongBufferImpl.java | 2 +- libjava/java/nio/ShortBufferImpl.java | 2 +- libjava/java/nio/channels/FileChannel.java | 2 +- .../nio/channels/ServerSocketChannel.java | 2 +- 11 files changed, 33 insertions(+), 10 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 376b89193af5..105197ccfd4e 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,26 @@ +2003-06-27 Michael Koch + + * java/nio/ByteBufferImpl.java + (ByteBufferImpl): Made it a package-private class + * java/nio/CharBufferImpl.java + (CharBufferImpl): Made it a package-private class + * java/nio/DirectByteBufferImpl.java + (DirectByteBufferImpl): Made it a package-private class + * java/nio/DoubleBufferImpl.java + (DoubleBufferImpl): Made it a package-private class + * java/nio/FloatBufferImpl.java + (FloatBufferImpl): Made it a package-private class + * java/nio/IntBufferImpl.java + (IntBufferImpl): Made it a package-private class + * java/nio/LongBufferImpl.java + (LongBufferImpl): Made it a package-private class + * java/nio/ShortBufferImpl.java + (ShortBufferImpl): Made it a package-private class + * java/nio/channels/FileChannel.java + (write): Made final. + * java/nio/channels/ServerSocketChannel.java + (ServerSocketChanne): Made protected. + 2003-06-27 Michael Koch * javax/naming/CompositeName.java diff --git a/libjava/java/nio/ByteBufferImpl.java b/libjava/java/nio/ByteBufferImpl.java index 4642288e79a1..37db881fa4c6 100644 --- a/libjava/java/nio/ByteBufferImpl.java +++ b/libjava/java/nio/ByteBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class ByteBufferImpl extends ByteBuffer +final class ByteBufferImpl extends ByteBuffer { private boolean readOnly; diff --git a/libjava/java/nio/CharBufferImpl.java b/libjava/java/nio/CharBufferImpl.java index 708ab403f545..d22b4d1b2bb7 100644 --- a/libjava/java/nio/CharBufferImpl.java +++ b/libjava/java/nio/CharBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class CharBufferImpl extends CharBuffer +final class CharBufferImpl extends CharBuffer { private boolean readOnly; diff --git a/libjava/java/nio/DirectByteBufferImpl.java b/libjava/java/nio/DirectByteBufferImpl.java index c746723f0d87..352016372f7d 100644 --- a/libjava/java/nio/DirectByteBufferImpl.java +++ b/libjava/java/nio/DirectByteBufferImpl.java @@ -40,7 +40,7 @@ package java.nio; import gnu.gcj.RawData; -public class DirectByteBufferImpl extends ByteBuffer +class DirectByteBufferImpl extends ByteBuffer { RawData address; private int offset; diff --git a/libjava/java/nio/DoubleBufferImpl.java b/libjava/java/nio/DoubleBufferImpl.java index dbc63bbad296..8dacec9be34b 100644 --- a/libjava/java/nio/DoubleBufferImpl.java +++ b/libjava/java/nio/DoubleBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class DoubleBufferImpl extends DoubleBuffer +final class DoubleBufferImpl extends DoubleBuffer { private boolean readOnly; diff --git a/libjava/java/nio/FloatBufferImpl.java b/libjava/java/nio/FloatBufferImpl.java index 93dd1d0b35aa..db0f52bb412c 100644 --- a/libjava/java/nio/FloatBufferImpl.java +++ b/libjava/java/nio/FloatBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class FloatBufferImpl extends FloatBuffer +final class FloatBufferImpl extends FloatBuffer { private boolean readOnly; diff --git a/libjava/java/nio/IntBufferImpl.java b/libjava/java/nio/IntBufferImpl.java index ebf33ecbc518..ec444c014c37 100644 --- a/libjava/java/nio/IntBufferImpl.java +++ b/libjava/java/nio/IntBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class IntBufferImpl extends IntBuffer +final class IntBufferImpl extends IntBuffer { private boolean readOnly; diff --git a/libjava/java/nio/LongBufferImpl.java b/libjava/java/nio/LongBufferImpl.java index 08d4ac5486f4..b4fb3de5f8a7 100644 --- a/libjava/java/nio/LongBufferImpl.java +++ b/libjava/java/nio/LongBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class LongBufferImpl extends LongBuffer +final class LongBufferImpl extends LongBuffer { private boolean readOnly; diff --git a/libjava/java/nio/ShortBufferImpl.java b/libjava/java/nio/ShortBufferImpl.java index fcfbee64f96a..5f6c60137a12 100644 --- a/libjava/java/nio/ShortBufferImpl.java +++ b/libjava/java/nio/ShortBufferImpl.java @@ -41,7 +41,7 @@ package java.nio; /** * This is a Heap memory implementation */ -public final class ShortBufferImpl extends ShortBuffer +final class ShortBufferImpl extends ShortBuffer { private boolean readOnly; diff --git a/libjava/java/nio/channels/FileChannel.java b/libjava/java/nio/channels/FileChannel.java index 708a50c9a397..9def46316521 100644 --- a/libjava/java/nio/channels/FileChannel.java +++ b/libjava/java/nio/channels/FileChannel.java @@ -112,7 +112,7 @@ public abstract class FileChannel extends AbstractInterruptibleChannel * * @exception IOException If an I/O error occurs. */ - public long write (ByteBuffer[] srcs) throws IOException + public final long write (ByteBuffer[] srcs) throws IOException { long result = 0; diff --git a/libjava/java/nio/channels/ServerSocketChannel.java b/libjava/java/nio/channels/ServerSocketChannel.java index 27870077608c..a116731c602f 100644 --- a/libjava/java/nio/channels/ServerSocketChannel.java +++ b/libjava/java/nio/channels/ServerSocketChannel.java @@ -53,7 +53,7 @@ public abstract class ServerSocketChannel /** * Initializes this channel. */ - public ServerSocketChannel (SelectorProvider provider) + protected ServerSocketChannel (SelectorProvider provider) { super (provider); } -- 2.43.5