keith-turner commented on a change in pull request #1040: Replace anonymous 
types with lambda
URL: https://github.com/apache/fluo/pull/1040#discussion_r194846033
 
 

 ##########
 File path: 
modules/core/src/main/java/org/apache/fluo/core/oracle/OracleServer.java
 ##########
 @@ -299,13 +299,7 @@ private InetSocketAddress startServer() throws 
TTransportException {
     serverArgs.outputProtocolFactory(new TCompactProtocol.Factory());
     server = new THsHaServer(serverArgs);
 
-    Runnable st = new Runnable() {
-
-      @Override
-      public void run() {
-        server.serve();
-      }
-    };
+    Runnable st = () -> server.serve();
 
 Review comment:
   Could `st` be inlined?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to