Use enhanced-for cycle instead of Enumeration in javax.crypto

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 20
    • Affects Version/s: None
    • Component/s: security-libs

      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.

      javax.crypto.CryptoPermissionCollection#implies
      javax.crypto.CryptoPermissions#getMinimum(javax.crypto.CryptoPermissions)
      javax.crypto.CryptoPolicyParser#getPermissions

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: