Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2817

Using `Collections.singletonList` instead of `Arrays.asList(oneElement)`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.3
    • None
    • server

    Description

      Using `Collections.singletonList` instead of `Arrays.asList(oneElement)` for reusing a immutable object instead of creating a new object.

      Attachments

        Activity

          People

            benedict jin Benedict Jin
            benedict jin Benedict Jin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 71h 50m
                71h 50m
                Logged:
                Remaining Estimate - 71h 50m
                10m