1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 01:29:38 +02:00

Remove deprecated reconnection callbacks in ConnectionListener

Fixes SMACK-776.
This commit is contained in:
Florian Schmaus 2018-04-07 21:15:20 +02:00
parent 0a99291d59
commit f11134dc4c
5 changed files with 0 additions and 91 deletions

View file

@ -53,8 +53,6 @@ import org.jxmpp.stringprep.XmppStringprepException;
*/
public class DummyConnection extends AbstractXMPPConnection {
private boolean reconnect = false;
private final BlockingQueue<TopLevelStreamElement> queue = new LinkedBlockingQueue<TopLevelStreamElement>();
public static ConnectionConfiguration.Builder<?,?> getDummyConfigurationBuilder() {
@ -88,16 +86,10 @@ public class DummyConnection extends AbstractXMPPConnection {
user = getUserJid();
}
@SuppressWarnings("deprecation")
@Override
protected void connectInternal() {
connected = true;
streamId = "dummy-" + new Random(new Date().getTime()).nextInt();
// TODO: Remove in Smack 4.3, and likely the suppression of the deprecation warning.
if (reconnect) {
notifyReconnection();
}
}
@Override
@ -106,7 +98,6 @@ public class DummyConnection extends AbstractXMPPConnection {
authenticated = false;
callConnectionClosedListener();
reconnect = true;
}
@Override