RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v2]
Daniel Fuchs
dfuchs at openjdk.java.net
Tue Apr 13 10:11:57 UTC 2021
On Tue, 13 Apr 2021 10:00:51 GMT, Conor Cleary <ccleary at 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
More information about the security-dev
mailing list