Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
We compile for 1.5
Dieser Commit ist enthalten in:
Ursprung
d95a4705cb
Commit
055c13461d
@ -61,7 +61,6 @@ public final class WeakCollection<T> implements Collection<T> {
|
|||||||
Iterator<WeakReference<T>> it = collection.iterator();
|
Iterator<WeakReference<T>> it = collection.iterator();
|
||||||
Object value = NO_VALUE;
|
Object value = NO_VALUE;
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean hasNext() {
|
public boolean hasNext() {
|
||||||
Object value = this.value;
|
Object value = this.value;
|
||||||
if (value != null && value != NO_VALUE) {
|
if (value != null && value != NO_VALUE) {
|
||||||
@ -84,7 +83,6 @@ public final class WeakCollection<T> implements Collection<T> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public T next() throws NoSuchElementException {
|
public T next() throws NoSuchElementException {
|
||||||
if (!hasNext()) {
|
if (!hasNext()) {
|
||||||
throw new NoSuchElementException("No more elements");
|
throw new NoSuchElementException("No more elements");
|
||||||
@ -96,7 +94,6 @@ public final class WeakCollection<T> implements Collection<T> {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void remove() throws IllegalStateException {
|
public void remove() throws IllegalStateException {
|
||||||
if (value != NO_VALUE) {
|
if (value != NO_VALUE) {
|
||||||
throw new IllegalStateException("No last element");
|
throw new IllegalStateException("No last element");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren