You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "LiAoNan (Jira)" <ji...@apache.org> on 2020/12/23 07:08:00 UTC
[jira] [Created] (ZOOKEEPER-4034) Replace lambda with method
reference
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)