You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Benedict Jin (JIRA)" <ji...@apache.org> on 2017/06/22 11:33:00 UTC
[jira] [Created] (ZOOKEEPER-2817) Using `Collections.singletonList`
instead of `Arrays.asList(oneElement)`
Benedict Jin created ZOOKEEPER-2817:
---------------------------------------
Summary: Using `Collections.singletonList` instead of `Arrays.asList(oneElement)`
Key: ZOOKEEPER-2817
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2817
Project: ZooKeeper
Issue Type: Improvement
Components: server
Affects Versions: 3.5.3
Reporter: Benedict Jin
Assignee: Benedict Jin
Fix For: 4.0.0
Using `Collections.singletonList` instead of `Arrays.asList(oneElement)` for reusing a immutable object instead of creating a new object.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)