This series of patches uses lambdas instead of anonymous classes for
functional interfaces when possible. Lambdas are replaced with method
references when appropriate.
Change-Id: Ib75e49cf502ee5c646525ebaef09697cdf1dcff0
Signed-off-by: Stephen Kitt <skitt@redhat.com>
try {
ExecutorService executor = Executors.newFixedThreadPool(input.getNumClients().intValue());
- final Runnable testRun = new Runnable() {
- @Override
- public void run() {
- client.runTest(input.getIterations().intValue());
- }
- };
+ final Runnable testRun = () -> client.runTest(input.getIterations().intValue());
LOG.info("Test Started");
long startTime = System.nanoTime();