mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02: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);
|
||||
shutdown();
|
||||
callConnectionClosedListener();
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Shuts the current connection down.
|
||||
|
|
|
@ -39,5 +39,5 @@ public abstract class Provider<E extends Element> {
|
|||
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() {
|
||||
return counter;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,6 @@ public class ThreadedDummyConnection extends DummyConnection {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ public class OfflineMessageManager {
|
|||
private final XMPPConnection connection;
|
||||
|
||||
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) {
|
||||
this.connection = connection;
|
||||
|
|
|
@ -140,8 +140,7 @@ public class PEPManager {
|
|||
PEPEvent event = (PEPEvent) message.getExtension("event", "http://jabber.org/protocol/pubsub#event");
|
||||
// Fire event for roster exchange listeners
|
||||
firePEPListeners(message.getFrom(), event);
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
connection.addPacketListener(packetListener, packetFilter);
|
||||
}
|
||||
|
@ -149,7 +148,6 @@ public class PEPManager {
|
|||
public void destroy() {
|
||||
if (connection != null)
|
||||
connection.removePacketListener(packetListener);
|
||||
|
||||
}
|
||||
|
||||
protected void finalize() throws Throwable {
|
||||
|
|
|
@ -46,8 +46,6 @@ public abstract class TransportResolver {
|
|||
rawupd, ice
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
public Type getType() {
|
||||
return type;
|
||||
}
|
||||
|
|
|
@ -95,9 +95,7 @@ public class MessageEventManager extends Manager {
|
|||
message.getFrom(),
|
||||
messageEvent.getPacketID(),
|
||||
eventType.concat("Notification"));
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}, PACKET_FILTER);
|
||||
INSTANCES.put(connection, this);
|
||||
}
|
||||
|
|
|
@ -83,8 +83,7 @@ public class RosterExchangeManager {
|
|||
(RosterExchange) message.getExtension(ELEMENT, NAMESPACE);
|
||||
// Fire event for roster exchange listeners
|
||||
fireRosterExchangeListeners(message.getFrom(), rosterExchange.getRosterEntries());
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
connection.addPacketListener(packetListener, PACKET_FILTER);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue