On Tue, 13 Apr 2021 10:00:51 GMT, Conor Cleary <ccle...@openjdk.org> wrote:
>> Good idea, also would fit in with the style of the method just after, >> `priviligedHasNext()` as that also uses a functional interface. > > Changes included as described in commit > [5d6ecd3](https://github.com/openjdk/jdk/pull/3416/commits/5d6ecd31eb6ed2a63f17b2e798e83b91cb720075) Here again this is not strictly equivalent but AFAIK `Thread::currentThread` doesn't require any permission, so this should be OK. ------------- PR: https://git.openjdk.java.net/jdk/pull/3416