SONAR suggestion - .equals() calls that cannot be true due to type mismatches

Change-Id: I65f867be548530813fc7164b610888b1f84591b5
diff --git a/protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/impl/TopologyForDeviceAndLinkImpl.java b/protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/impl/TopologyForDeviceAndLinkImpl.java
index 1aae861..710e6a8 100644
--- a/protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/impl/TopologyForDeviceAndLinkImpl.java
+++ b/protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/impl/TopologyForDeviceAndLinkImpl.java
@@ -608,7 +608,7 @@
             for (OspfLsaLink link : ospfLsaLinkList) {
                 if (link.linkType() == 1 || link.linkType() == 2) {
                     if ((routerLsa.advertisingRouter().equals(ospfArea.routerId())) ||
-                            (link.equals(ospfArea.routerId()))) {
+                            (link.linkId().equals(ospfArea.routerId().toString()))) {
                         log.debug("OspfInterface information will not display in web ");
                     } else {
                         String key = routerLsa.advertisingRouter() + "-" + link.linkData();
@@ -643,7 +643,7 @@
             for (OspfLsaLink link : ospfLsaLinkList) {
                 if (link.linkType() == 1 || link.linkType() == 2) {
                     if ((routerLsa.advertisingRouter().equals(ospfArea.routerId())) ||
-                            (link.equals(ospfArea.routerId()))) {
+                            (link.linkId().equals(ospfArea.routerId().toString()))) {
                         log.debug("OspfInterface information will not display in web ");
                     } else {
                         String key = routerLsa.advertisingRouter() + "-" + link.linkData();