Remove type parameter by using type interence

Change-Id: I59868219a34a7280a0df4173ec0b401170f10457
diff --git a/core/api/src/main/java/org/onosproject/net/intent/OpticalPathIntent.java b/core/api/src/main/java/org/onosproject/net/intent/OpticalPathIntent.java
index 7006b68..70a0238 100644
--- a/core/api/src/main/java/org/onosproject/net/intent/OpticalPathIntent.java
+++ b/core/api/src/main/java/org/onosproject/net/intent/OpticalPathIntent.java
@@ -20,7 +20,6 @@
 import org.onosproject.core.ApplicationId;
 import org.onosproject.net.ConnectPoint;
 import org.onosproject.net.Link;
-import org.onosproject.net.NetworkResource;
 import org.onosproject.net.Path;
 
 import com.google.common.base.MoreObjects;
@@ -37,7 +36,7 @@
             ConnectPoint src,
             ConnectPoint dst,
             Path path) {
-        super(appId, ImmutableSet.<NetworkResource>copyOf(path.links()));
+        super(appId, ImmutableSet.copyOf(path.links()));
         this.src = src;
         this.dst = dst;
         this.path = path;