From eb0043a05776bf4bbeb4c058246af15a75d36916 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sat, 11 Oct 2003 18:45:10 +0000 Subject: [PATCH] Channel.java, [...]: Removed redundant modifiers. 2003-10-11 Michael Koch * java/nio/channels/Channel.java, java/nio/channels/GatheringByteChannel.java, java/nio/channels/ReadableByteChannel.java, java/nio/channels/ScatteringByteChannel.java, java/nio/channels/WritableByteChannel.java: Removed redundant modifiers. From-SVN: r72355 --- libjava/ChangeLog | 9 +++++++++ libjava/java/nio/channels/Channel.java | 4 ++-- libjava/java/nio/channels/GatheringByteChannel.java | 4 ++-- libjava/java/nio/channels/ReadableByteChannel.java | 2 +- libjava/java/nio/channels/ScatteringByteChannel.java | 4 ++-- libjava/java/nio/channels/WritableByteChannel.java | 2 +- 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 4261e15028e..73f92efcc64 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,12 @@ +2003-10-11 Michael Koch + + * java/nio/channels/Channel.java, + java/nio/channels/GatheringByteChannel.java, + java/nio/channels/ReadableByteChannel.java, + java/nio/channels/ScatteringByteChannel.java, + java/nio/channels/WritableByteChannel.java: + Removed redundant modifiers. + 2003-10-11 Michael Koch * java/rmi/activation/ActivationInstantiator.java, diff --git a/libjava/java/nio/channels/Channel.java b/libjava/java/nio/channels/Channel.java index b5272c36776..86df85edb1b 100644 --- a/libjava/java/nio/channels/Channel.java +++ b/libjava/java/nio/channels/Channel.java @@ -44,12 +44,12 @@ public interface Channel /** * Tells whether this channel is open or not */ - public boolean isOpen(); + boolean isOpen(); /** * Closes this channel * * @exception IOException If an error occurs */ - public void close() throws IOException; + void close() throws IOException; } diff --git a/libjava/java/nio/channels/GatheringByteChannel.java b/libjava/java/nio/channels/GatheringByteChannel.java index 3ef12b7b6dc..1528e56175c 100644 --- a/libjava/java/nio/channels/GatheringByteChannel.java +++ b/libjava/java/nio/channels/GatheringByteChannel.java @@ -59,7 +59,7 @@ public interface GatheringByteChannel * @exception NonWritableChannelException If this channel was not opened for * writing */ - public long write(ByteBuffer[] srcs, int offset, int length) + long write (ByteBuffer[] srcs, int offset, int length) throws IOException; /** @@ -75,5 +75,5 @@ public interface GatheringByteChannel * @exception NonWritableChannelException If this channel was not opened for * writing */ - public long write(ByteBuffer[] srcs) throws IOException; + long write (ByteBuffer[] srcs) throws IOException; } diff --git a/libjava/java/nio/channels/ReadableByteChannel.java b/libjava/java/nio/channels/ReadableByteChannel.java index d1653cc8d3e..f870e6bdfa8 100644 --- a/libjava/java/nio/channels/ReadableByteChannel.java +++ b/libjava/java/nio/channels/ReadableByteChannel.java @@ -55,5 +55,5 @@ public interface ReadableByteChannel extends Channel * @exception NonReadableChannelException If this channel was not opened for * reading */ - public int read (ByteBuffer dst) throws IOException; + int read (ByteBuffer dst) throws IOException; } diff --git a/libjava/java/nio/channels/ScatteringByteChannel.java b/libjava/java/nio/channels/ScatteringByteChannel.java index a9efdbef448..bd8bb6cac4d 100644 --- a/libjava/java/nio/channels/ScatteringByteChannel.java +++ b/libjava/java/nio/channels/ScatteringByteChannel.java @@ -59,7 +59,7 @@ public interface ScatteringByteChannel * @exception NonReadableChannelException If this channel was not opened for * reading */ - public long read(ByteBuffer[] srcs, int offset, int length) + long read (ByteBuffer[] srcs, int offset, int length) throws IOException; /** @@ -75,5 +75,5 @@ public interface ScatteringByteChannel * @exception NonReadableChannelException If this channel was not opened for * reading */ - public long read(ByteBuffer[] srcs) throws IOException; + long read (ByteBuffer[] srcs) throws IOException; } diff --git a/libjava/java/nio/channels/WritableByteChannel.java b/libjava/java/nio/channels/WritableByteChannel.java index 003437e5f3c..7b66f5d35a2 100644 --- a/libjava/java/nio/channels/WritableByteChannel.java +++ b/libjava/java/nio/channels/WritableByteChannel.java @@ -56,5 +56,5 @@ public interface WritableByteChannel * @exception NonWritableChannelException If this channel was not opened for * writing */ - public int write(ByteBuffer src) throws IOException; + int write (ByteBuffer src) throws IOException; } -- 2.30.2