Skip to content

Commit

Permalink
Remove unused ReferenceQueue methods from jdk21+
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Shipton <[email protected]>
  • Loading branch information
pshipton committed Dec 2, 2024
1 parent e92d440 commit fcd9e5b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions jcl/src/java.base/share/classes/java/lang/ref/ReferenceQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,31 +239,6 @@ void forEach(java.util.function.Consumer<? super Reference<? extends T>> consume
}

/*[IF JAVA_SPEC_VERSION >= 19]*/
final boolean headIsNull() {
return empty;
}

final Reference<? extends T> poll0() {
return poll();
}

final Reference<? extends T> remove0(long timeout) throws IllegalArgumentException, InterruptedException {
return remove(timeout);
}

final Reference<? extends T> remove0() throws IllegalArgumentException, InterruptedException {
return remove(0L);
}

final boolean enqueue0(Reference reference) {
enqueue(reference);
return true;
}

void signal() {}
void await() throws InterruptedException {}
void await(long timeout) throws InterruptedException {}

ReferenceQueue(int value) {
this();
}
Expand Down

0 comments on commit fcd9e5b

Please sign in to comment.