Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8297682

Use Collections.emptyIterator where applicable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 21
    • None
    • core-libs
    • None
    • b03

    Description

      Instead of Collections.emptyList().iterator() we can use Collections.emptyIterator() method.
      Actual implementation of java.util.Collections.EmptyList#iterator does exactly this - just calls emptyIterator method.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: