Bump odlparent to 6.0.0
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / protocol / BGPReconnectPromise.java
index b9d3189b3494dd373e41cc25b5c1f0f0aabb2554..ceb813f5b96144e22f73aeb7937ac6ae94af7df0 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.protocol.bgp.rib.impl.protocol;
 
 import static java.util.Objects.requireNonNull;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import io.netty.bootstrap.Bootstrap;
 import io.netty.channel.ChannelHandler;
 import io.netty.channel.ChannelHandlerContext;
@@ -96,11 +97,15 @@ public class BGPReconnectPromise<S extends BGPSession> extends DefaultPromise<Vo
      * @return true if initial connection was established successfully, false if initial connection failed due
      *         to e.g. Connection refused, Negotiation failed
      */
+    @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD",
+            justification = "https://github.com/spotbugs/spotbugs/issues/811")
     private synchronized boolean isInitialConnectFinished() {
         requireNonNull(this.pending);
         return this.pending.isDone() && this.pending.isSuccess();
     }
 
+    @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD",
+            justification = "https://github.com/spotbugs/spotbugs/issues/811")
     private synchronized void reconnect() {
         requireNonNull(this.pending);
         this.pending.reconnect();