From: kkolinko Date: Mon, 4 Jul 2011 13:41:43 +0000 (+0000) Subject: Add @Override annotation X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b873dcebb54a2268bd320ca4a9c15844236b3406;p=tomcat7.0 Add @Override annotation git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142661 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioChannel.java b/java/org/apache/tomcat/util/net/NioChannel.java index 9f70fe65e..acdc9d906 100644 --- a/java/org/apache/tomcat/util/net/NioChannel.java +++ b/java/org/apache/tomcat/util/net/NioChannel.java @@ -86,6 +86,7 @@ public class NioChannel implements ByteChannel{ * @throws IOException If an I/O error occurs * TODO Implement this java.nio.channels.Channel method */ + @Override public void close() throws IOException { getIOChannel().socket().close(); getIOChannel().close(); @@ -100,6 +101,7 @@ public class NioChannel implements ByteChannel{ * @return true if, and only if, this channel is open * TODO Implement this java.nio.channels.Channel method */ + @Override public boolean isOpen() { return sc.isOpen(); } @@ -112,6 +114,7 @@ public class NioChannel implements ByteChannel{ * @throws IOException If some other I/O error occurs * TODO Implement this java.nio.channels.WritableByteChannel method */ + @Override public int write(ByteBuffer src) throws IOException { return sc.write(src); } @@ -124,6 +127,7 @@ public class NioChannel implements ByteChannel{ * @throws IOException If some other I/O error occurs * TODO Implement this java.nio.channels.ReadableByteChannel method */ + @Override public int read(ByteBuffer dst) throws IOException { return sc.read(dst); }