Use lambda expression for conciseness

Change-Id: Icf1ae1f95bece5a5547b3c2fb43c261a722ab1c0
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/ConnectivityIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/ConnectivityIntentCompiler.java
index 0a73d9a..6de4cfd 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/ConnectivityIntentCompiler.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/ConnectivityIntentCompiler.java
@@ -15,7 +15,6 @@
  */
 package org.onosproject.net.intent.impl.compiler;
 
-import com.google.common.base.Predicate;
 import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import org.apache.felix.scr.annotations.Component;
@@ -99,12 +98,8 @@
         Set<Path> paths = pathService.getPaths(one, two, weight(intent.constraints()));
         final List<Constraint> constraints = intent.constraints();
         ImmutableList<Path> filtered = FluentIterable.from(paths)
-                .filter(new Predicate<Path>() {
-                    @Override
-                    public boolean apply(Path path) {
-                        return checkPath(path, constraints);
-                    }
-                }).toList();
+                .filter(path -> checkPath(path, constraints))
+                .toList();
         if (filtered.isEmpty()) {
             throw new PathNotFoundException(one, two);
         }