harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r588354 - /harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/spi/AbstractSelectableChannel.java
Date Thu, 25 Oct 2007 21:01:32 GMT
Author: tellison
Date: Thu Oct 25 14:01:31 2007
New Revision: 588354

URL: http://svn.apache.org/viewvc?rev=588354&view=rev
Log:
Take out unused import, add in annotations.

Modified:
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/spi/AbstractSelectableChannel.java

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/spi/AbstractSelectableChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/spi/AbstractSelectableChannel.java?rev=588354&r1=588353&r2=588354&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/spi/AbstractSelectableChannel.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/spi/AbstractSelectableChannel.java
Thu Oct 25 14:01:31 2007
@@ -26,7 +26,6 @@
 import java.nio.channels.SelectionKey;
 import java.nio.channels.Selector;
 import java.util.ArrayList;
-import java.util.Iterator;
 import java.util.List;
 
 /**
@@ -35,7 +34,6 @@
  * In this class, there are methods about registering/deregistering a channel,
  * about channel closing. It realize the multi-thread safe.
  * </p>
- * 
  */
 public abstract class AbstractSelectableChannel extends SelectableChannel {
 
@@ -71,6 +69,7 @@
      * @see java.nio.channels.SelectableChannel#provider()
      * @return The provider of this channel.
      */
+    @Override
     public final SelectorProvider provider() {
         return provider;
     }
@@ -78,6 +77,7 @@
     /**
      * @see java.nio.channels.SelectableChannel#isRegistered()
      */
+    @Override
     synchronized public final boolean isRegistered() {
         return !keyList.isEmpty();
     }
@@ -85,6 +85,7 @@
     /**
      * @see java.nio.channels.SelectableChannel#keyFor(java.nio.channels.Selector)
      */
+    @Override
     synchronized public final SelectionKey keyFor(Selector selector) {
         for (int i = 0; i < keyList.size(); i++) {
             SelectionKey key = keyList.get(i);
@@ -109,6 +110,7 @@
      * @see java.nio.channels.SelectableChannel#register(java.nio.channels.Selector,
      *      int, java.lang.Object)
      */
+    @Override
     public final SelectionKey register(Selector selector, int interestSet,
             Object attachment) throws ClosedChannelException {
         if (!isOpen()) {
@@ -155,6 +157,7 @@
      * 
      * @see java.nio.channels.spi.AbstractInterruptibleChannel#implCloseChannel()
      */
+    @Override
     synchronized protected final void implCloseChannel() throws IOException {
         implCloseSelectableChannel();
         for (int i = 0; i < keyList.size(); i++) {
@@ -176,6 +179,7 @@
     /**
      * @see java.nio.channels.SelectableChannel#isBlocking()
      */
+    @Override
     public final boolean isBlocking() {
         synchronized (blockingLock) {
             return isBlocking;
@@ -185,6 +189,7 @@
     /**
      * @see java.nio.channels.SelectableChannel#blockingLock()
      */
+    @Override
     public final Object blockingLock() {
         return blockingLock;
     }
@@ -197,6 +202,7 @@
      *            <code>true</code> for blocking mode; <code>false</code>
      *            for non-blocking mode.
      */
+    @Override
     public final SelectableChannel configureBlocking(boolean blockingMode)
             throws IOException {
         if (isOpen()) {
@@ -213,7 +219,6 @@
             return this;
         }
         throw new ClosedChannelException();
-
     }
 
     /**



Mime
View raw message