Integrated: 8295953: Use enhanced-for cycle instead of Enumeration in sun.security
Andrey Turbanov
aturbanov at openjdk.org
Mon Nov 7 16:48:54 UTC 2022
On Mon, 17 Oct 2022 21:50:08 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> java.util.Enumeration is a legacy interface from java 1.0.
> There are a few places with cycles which use it to iterate over collections. We can replace this manual cycle with enchanced-for, which is shorter and easier to read.
This pull request has now been integrated.
Changeset: 3baad069
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3baad069a65a0ac138a6aaabf451758672d12fbc
Stats: 32 lines in 6 files changed: 0 ins; 18 del; 14 mod
8295953: Use enhanced-for cycle instead of Enumeration in sun.security
Reviewed-by: weijun
-------------
PR: https://git.openjdk.org/jdk/pull/10734
More information about the security-dev
mailing list