RFR: 8297074: Use enhanced-for cycle instead of Enumeration in javax.crypto
Andrey Turbanov
aturbanov at openjdk.org
Tue Nov 15 20:55:51 UTC 2022
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.
-------------
Commit messages:
- 8297074: Use enhanced-for cycle instead of Enumeration in javax.crypto
- [PATCH] Use enhanced-for cycle instead of Enumeration in javax.crypto
- [PATCH] Use enhanced-for cycle instead of Enumeration in javax.crypto
Changes: https://git.openjdk.org/jdk/pull/11022/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11022&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8297074
Stats: 36 lines in 3 files changed: 0 ins; 30 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/11022.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11022/head:pull/11022
PR: https://git.openjdk.org/jdk/pull/11022
More information about the security-dev
mailing list