Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8994

Code Cleanup - Pass values to list constructor instead of empty constructor followed by addAll().

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 8.4
    • None
    • None
    • New

    Description

      Trivial ticket, if your time is precious, feel free to skip.

       

      In case of passing a collection into another, it's more efficient to pass the already existing collection into the constructor of the new one. It can usually deal with it more efficiently.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              KoenDG Koen De Groote
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m