You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2018/06/12 18:37:11 UTC

[GitHub] keith-turner commented on a change in pull request #1040: Replace anonymous types with lambda

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


With regards,
Apache Git Services