Bump mdsal to 5.0.2
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / StrictBGPPeerRegistry.java
index 29e480eed8516d81338f104639eaeecd8f42b06a..0870f9778853a58497344985f3070fe12acd4622 100644 (file)
@@ -338,7 +338,7 @@ public final class StrictBGPPeerRegistry implements BGPPeerRegistry {
         }
 
         boolean hasHigherAsNumber(final BGPSessionId other) {
-            return this.asNumber.getValue() > other.asNumber.getValue();
+            return this.asNumber.getValue().compareTo(other.asNumber.getValue()) > 0;
         }
 
         private static long toLong(final Ipv4Address from) {