Skip to content

Commit

Permalink
Correctly implement SelectedSelectionKeySet.Iterator remove()
Browse files Browse the repository at this point in the history
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 c1a3354.

Modifications:

Just implemented remove()

Result:

Works on Java7 as well.
  • Loading branch information
normanmaurer committed Sep 1, 2018
1 parent 187b1b8 commit c74b3f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ public SelectionKey next() {
}
return keys[idx++];
}

@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}

Expand Down
Empty file added transport/test.log
Empty file.

0 comments on commit c74b3f3

Please sign in to comment.