X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-client%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fclient%2FSimpleNetconfClientSessionListener.java;h=b13e05b8b4304b3b746cb8bd0cfc1472c5e6eb8f;hb=6c911783fcdac163bb6efc8ff7dbf56cbfb2ad22;hp=ce1e5ef0a0541af78a131324987fc36f76a91cc4;hpb=76f8db2a4b3af314aaca452c282f1802a6c7a1bf;p=netconf.git diff --git a/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/SimpleNetconfClientSessionListener.java b/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/SimpleNetconfClientSessionListener.java index ce1e5ef0a0..b13e05b8b4 100644 --- a/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/SimpleNetconfClientSessionListener.java +++ b/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/SimpleNetconfClientSessionListener.java @@ -9,7 +9,6 @@ package org.opendaylight.netconf.client; import com.google.common.base.Preconditions; -import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.GlobalEventExecutor; import io.netty.util.concurrent.Promise; @@ -41,7 +40,6 @@ public class SimpleNetconfClientSessionListener implements NetconfClientSessionL private NetconfClientSession clientSession; @GuardedBy("this") - @SuppressFBWarnings("RV_RETURN_VALUE_IGNORED") private void dispatchRequest() { while (!requests.isEmpty()) { final RequestEntry e = requests.peek(); @@ -52,7 +50,7 @@ public class SimpleNetconfClientSessionListener implements NetconfClientSessionL } LOG.debug("Message {} has been cancelled, skipping it", e.request); - requests.poll(); + requests.remove(); } }