RFR: 8295823: Use enhanced-for cycle instead of Enumeration in java.naming

Vyom Tewari vtewari at openjdk.org
Tue Oct 25 03:41:49 UTC 2022


On Thu, 20 Oct 2022 20:28:37 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> `java.util.Enumeration` is a legacy interface from java 1.0.
> There are couple of cycles which use it to iterate over collections. We can replace this manual cycle with enchanced-for, which is shorter and easier to read.

Looks OK to me.

-------------

Marked as reviewed by vtewari (Committer).

PR: https://git.openjdk.org/jdk/pull/10804


More information about the core-libs-dev mailing list