Sho SHIMIZU
Committed by Brian O'Connor

Use lambda instead of anonymous inner class

Change-Id: I5b2b93e82ec50296af66970ac518d7e0e8a14177
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
16 package org.onosproject.store.device.impl; 16 package org.onosproject.store.device.impl;
17 17
18 import com.google.common.base.Function; 18 import com.google.common.base.Function;
19 -import com.google.common.base.Predicate;
20 import com.google.common.collect.FluentIterable; 19 import com.google.common.collect.FluentIterable;
21 import com.google.common.collect.ImmutableList; 20 import com.google.common.collect.ImmutableList;
22 import com.google.common.collect.Maps; 21 import com.google.common.collect.Maps;
...@@ -286,13 +285,7 @@ public class GossipDeviceStore ...@@ -286,13 +285,7 @@ public class GossipDeviceStore
286 @Override 285 @Override
287 public Iterable<Device> getAvailableDevices() { 286 public Iterable<Device> getAvailableDevices() {
288 return FluentIterable.from(getDevices()) 287 return FluentIterable.from(getDevices())
289 - .filter(new Predicate<Device>() { 288 + .filter(input -> isAvailable(input.id()));
290 -
291 - @Override
292 - public boolean apply(Device input) {
293 - return isAvailable(input.id());
294 - }
295 - });
296 } 289 }
297 290
298 @Override 291 @Override
......