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

Use Collections.emptyIterator where applicable

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: