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

Arrays.asList() for single item could be replaced with List.of()

    XMLWordPrintable

Details

    Description

      If there is only one item, the call to Arrays.asList() could be replaced with List.of() for less memory occupation.

      Attachments

        Issue Links

          Activity

            People

              xuelei Xuelei Fan
              xuelei Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: