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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: