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

Use List.of() factory method to reduce memory consumption

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • core-libs
    • None
    • b26

      List.of() along with Set.of() create unmodifiable List/Set but with smaller footprint comparing to Arrays.asList() / new HashSet() when called with vararg of size 0, 1, 2.

            stsypanov Sergey Tsypanov
            stsypanov Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: