LiAoNan created ZOOKEEPER-4034:
----------------------------------

             Summary: Replace lambda with method reference
                 Key: ZOOKEEPER-4034
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4034
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: LiAoNan


replace

{code:java}
static final Supplier<Socket> DEFAULT_SOCKET_FACTORY = () -> new Socket();
{code}
with

{code:java}
static final Supplier<Socket> DEFAULT_SOCKET_FACTORY = Socket::new;
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to