Add @Override annotation
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 13:41:43 +0000 (13:41 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 13:41:43 +0000 (13:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142661 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioChannel.java

index 9f70fe6..acdc9d9 100644 (file)
@@ -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 <tt>true</tt> 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);
     }