From 90f52fcc3b0167c32b08e4980d9306c99da7320b Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 22 May 2016 22:50:49 +0200 Subject: [PATCH] Suppress 'unused' warning in XMPPTCPConnection --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index e63cf9bac..5de49e1d6 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -483,6 +483,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { // After we send the closing stream element, check if there was already a // closing stream element sent by the server or wait with a timeout for a // closing stream element to be received from the server. + @SuppressWarnings("unused") Exception res = closingStreamReceived.checkIfSuccessOrWait(); } catch (InterruptedException | NoResponseException e) { LOGGER.log(Level.INFO, "Exception while waiting for closing stream element from the server " + this, e);