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

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

    XMLWordPrintableJSON

    Details

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              benedict jin Benedict Jin
              Reporter:
              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