mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Remove empty statements
This commit is contained in:
parent
77a4867450
commit
a9c798f3bb
9 changed files with 8 additions and 15 deletions
|
@ -608,7 +608,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
sendPacket(unavailablePresence);
|
sendPacket(unavailablePresence);
|
||||||
shutdown();
|
shutdown();
|
||||||
callConnectionClosedListener();
|
callConnectionClosedListener();
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shuts the current connection down.
|
* Shuts the current connection down.
|
||||||
|
|
|
@ -39,5 +39,5 @@ public abstract class Provider<E extends Element> {
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract E parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException, SmackException;;
|
public abstract E parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException, SmackException;
|
||||||
}
|
}
|
||||||
|
|
|
@ -441,5 +441,5 @@ public class ChatConnectionTest {
|
||||||
public int getNumMessages() {
|
public int getNumMessages() {
|
||||||
return counter;
|
return counter;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,6 +104,6 @@ public class ThreadedDummyConnection extends DummyConnection {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class OfflineMessageManager {
|
||||||
private final XMPPConnection connection;
|
private final XMPPConnection connection;
|
||||||
|
|
||||||
private static final PacketFilter PACKET_FILTER = new AndFilter(new PacketExtensionFilter(
|
private static final PacketFilter PACKET_FILTER = new AndFilter(new PacketExtensionFilter(
|
||||||
new OfflineMessageInfo()), new PacketTypeFilter(Message.class));;
|
new OfflineMessageInfo()), new PacketTypeFilter(Message.class));
|
||||||
|
|
||||||
public OfflineMessageManager(XMPPConnection connection) {
|
public OfflineMessageManager(XMPPConnection connection) {
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
|
|
|
@ -140,8 +140,7 @@ public class PEPManager {
|
||||||
PEPEvent event = (PEPEvent) message.getExtension("event", "http://jabber.org/protocol/pubsub#event");
|
PEPEvent event = (PEPEvent) message.getExtension("event", "http://jabber.org/protocol/pubsub#event");
|
||||||
// Fire event for roster exchange listeners
|
// Fire event for roster exchange listeners
|
||||||
firePEPListeners(message.getFrom(), event);
|
firePEPListeners(message.getFrom(), event);
|
||||||
};
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
connection.addPacketListener(packetListener, packetFilter);
|
connection.addPacketListener(packetListener, packetFilter);
|
||||||
}
|
}
|
||||||
|
@ -149,7 +148,6 @@ public class PEPManager {
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
if (connection != null)
|
if (connection != null)
|
||||||
connection.removePacketListener(packetListener);
|
connection.removePacketListener(packetListener);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
|
|
|
@ -46,8 +46,6 @@ public abstract class TransportResolver {
|
||||||
rawupd, ice
|
rawupd, ice
|
||||||
}
|
}
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
public Type getType() {
|
public Type getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,9 +95,7 @@ public class MessageEventManager extends Manager {
|
||||||
message.getFrom(),
|
message.getFrom(),
|
||||||
messageEvent.getPacketID(),
|
messageEvent.getPacketID(),
|
||||||
eventType.concat("Notification"));
|
eventType.concat("Notification"));
|
||||||
|
}
|
||||||
};
|
|
||||||
|
|
||||||
}, PACKET_FILTER);
|
}, PACKET_FILTER);
|
||||||
INSTANCES.put(connection, this);
|
INSTANCES.put(connection, this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,8 +83,7 @@ public class RosterExchangeManager {
|
||||||
(RosterExchange) message.getExtension(ELEMENT, NAMESPACE);
|
(RosterExchange) message.getExtension(ELEMENT, NAMESPACE);
|
||||||
// Fire event for roster exchange listeners
|
// Fire event for roster exchange listeners
|
||||||
fireRosterExchangeListeners(message.getFrom(), rosterExchange.getRosterEntries());
|
fireRosterExchangeListeners(message.getFrom(), rosterExchange.getRosterEntries());
|
||||||
};
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
connection.addPacketListener(packetListener, PACKET_FILTER);
|
connection.addPacketListener(packetListener, PACKET_FILTER);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue