RFR: 8295953: Use enhanced-for cycle instead of Enumeration in sun.security
    Weijun Wang 
    weijun at openjdk.org
       
    Fri Oct 28 13:41:27 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.
LGTM.
-------------
Marked as reviewed by weijun (Reviewer).
PR: https://git.openjdk.org/jdk/pull/10734
    
    
More information about the security-dev
mailing list