zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedict Jin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-2817) Using `Collections.singletonList` instead of `Arrays.asList(oneElement)`
Date Thu, 22 Jun 2017 11:33:00 GMT
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)

Mime
View raw message