jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java
changeset 27757 0317e4973b42
parent 25859 3317bb8137f4
child 32143 394ab6a6658d
equal deleted inserted replaced
27756:0a9a3b51bb92 27757:0317e4973b42
   196         throws AsynchronousCloseException
   196         throws AsynchronousCloseException
   197     {
   197     {
   198         blockedOn(null);
   198         blockedOn(null);
   199         Thread interrupted = this.interrupted;
   199         Thread interrupted = this.interrupted;
   200         if (interrupted != null && interrupted == Thread.currentThread()) {
   200         if (interrupted != null && interrupted == Thread.currentThread()) {
   201             interrupted = null;
   201             this.interrupted = null;
   202             throw new ClosedByInterruptException();
   202             throw new ClosedByInterruptException();
   203         }
   203         }
   204         if (!completed && !open)
   204         if (!completed && !open)
   205             throw new AsynchronousCloseException();
   205             throw new AsynchronousCloseException();
   206     }
   206     }