jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java
equal
deleted
inserted
replaced
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 } |