Correctly implement SelectedSelectionKeySet.Iterator remove()

Motivation:

We need to implement remove() by ourselves to make it work on Java7 as otherwise it will throw an AbstractMethodError. This is a followup of c1a335446d.

Modifications:

Just implemented remove()

Result:

Works on Java7 as well.
This commit is contained in:
Norman Maurer 2018-09-01 08:59:08 +02:00
parent 187b1b8a55
commit c74b3f3a3b
2 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ final class SelectedSelectionKeySet extends AbstractSet<SelectionKey> {
}
return keys[idx++];
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}

0
transport/test.log Normal file
View File