You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/02/21 22:05:24 UTC
[GitHub] mikewalch commented on a change in pull request #975: Use lambdas
when creating Threads
mikewalch commented on a change in pull request #975: Use lambdas when creating Threads
URL: https://github.com/apache/accumulo/pull/975#discussion_r259136262
##########
File path: server/tracer/src/test/java/org/apache/accumulo/tracer/TracerTest.java
##########
@@ -168,12 +168,7 @@ public void testThrift() throws Exception {
TThreadPoolServer.Args args = new TThreadPoolServer.Args(transport);
args.processor(new Processor<Iface>(TraceWrap.service(new Service())));
final TServer tserver = new TThreadPoolServer(args);
- Thread t = new Thread() {
- @Override
- public void run() {
- tserver.serve();
- }
- };
+ Thread t = new Thread(() -> tserver.serve());
Review comment:
Yes I can.
----------------------------------------------------------------
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