Uploaded image for project: 'transportpce'
  1. transportpce
  2. TRNSPRTPCE-661

Replace ArrayList instanciation by immutable lists when possible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Phosphorus
    • None
    • None
    • None

      This is all the more true when ArrayList instantiation uses kind of anonymous class to its initialization, and that no new entries need to be added. In such a case, the use of immutable list with List.of() is particularly adequat.

            gthouenon Gilles Thouenon
            gthouenon Gilles Thouenon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d