ctubbsii commented on a change in pull request #1040: Replace anonymous types
with lambda
URL: https://github.com/apache/fluo/pull/1040#discussion_r194929870
##########
File path:
modules/core/src/main/java/org/apache/fluo/core/oracle/OracleServer.java
##########
@@ -299,9 +299,7 @@ private InetSocketAddress startServer() throws
TTransportException {
serverArgs.outputProtocolFactory(new TCompactProtocol.Factory());
server = new THsHaServer(serverArgs);
- Runnable st = () -> server.serve();
-
- serverThread = new Thread(st);
+ serverThread = new Thread(() -> server.serve());
Review comment:
A shorter syntax for `() -> server.serve()` is `server::serve`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services