- return Futures.transform(future, new Function<Boolean, Void>() {
- @Override
- public Void apply(final Boolean input) {
- LOG.debug("Writing physical port information for {}", deviceInfo);
- writePhyPortInformation(deviceContext);
- return null;
- }
+ return Futures.transform(future, input -> {
+ LOG.debug("Writing physical port information for {}", deviceInfo);
+ writePhyPortInformation(deviceContext);
+ return null;