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

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

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.3
    • Fix Version/s: 3.8.0
    • Component/s: server

      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

              Dates

              • Created:
                Updated:

                Time Tracking

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

                  Issue deployment