From a9c798f3bb36e7b58d32b2d991e1bb3bf0b4915c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 9 Nov 2014 11:02:49 +0100 Subject: [PATCH] Remove empty statements --- .../java/org/jivesoftware/smack/AbstractXMPPConnection.java | 2 +- .../main/java/org/jivesoftware/smack/provider/Provider.java | 2 +- .../test/java/org/jivesoftware/smack/ChatConnectionTest.java | 2 +- .../java/org/jivesoftware/smack/ThreadedDummyConnection.java | 2 +- .../jivesoftware/smackx/offline/OfflineMessageManager.java | 2 +- .../src/main/java/org/jivesoftware/smackx/pep/PEPManager.java | 4 +--- .../jivesoftware/smackx/jingleold/nat/TransportResolver.java | 2 -- .../org/jivesoftware/smackx/xevent/MessageEventManager.java | 4 +--- .../jivesoftware/smackx/xroster/RosterExchangeManager.java | 3 +-- 9 files changed, 8 insertions(+), 15 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index d3e8299c8..6a4c7ec69 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -608,7 +608,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { sendPacket(unavailablePresence); shutdown(); callConnectionClosedListener(); - }; + } /** * Shuts the current connection down. diff --git a/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java b/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java index 4fcaa76a5..1ba343466 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java @@ -39,5 +39,5 @@ public abstract class Provider { 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; } diff --git a/smack-core/src/test/java/org/jivesoftware/smack/ChatConnectionTest.java b/smack-core/src/test/java/org/jivesoftware/smack/ChatConnectionTest.java index e1f921540..0476f1c45 100644 --- a/smack-core/src/test/java/org/jivesoftware/smack/ChatConnectionTest.java +++ b/smack-core/src/test/java/org/jivesoftware/smack/ChatConnectionTest.java @@ -441,5 +441,5 @@ public class ChatConnectionTest { public int getNumMessages() { return counter; } - }; + } } diff --git a/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java b/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java index 7decd3058..d3b347ccc 100644 --- a/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java +++ b/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java @@ -104,6 +104,6 @@ public class ThreadedDummyConnection extends DummyConnection { e.printStackTrace(); } } - }; + } } diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/offline/OfflineMessageManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/offline/OfflineMessageManager.java index 709a55052..bbdc8f2de 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/offline/OfflineMessageManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/offline/OfflineMessageManager.java @@ -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; diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pep/PEPManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pep/PEPManager.java index a54fe80d8..60f2afa9e 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pep/PEPManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pep/PEPManager.java @@ -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 { diff --git a/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/TransportResolver.java b/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/TransportResolver.java index 15caf0e31..258fa6514 100644 --- a/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/TransportResolver.java +++ b/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/TransportResolver.java @@ -46,8 +46,6 @@ public abstract class TransportResolver { rawupd, ice } - ; - public Type getType() { return type; } diff --git a/smack-legacy/src/main/java/org/jivesoftware/smackx/xevent/MessageEventManager.java b/smack-legacy/src/main/java/org/jivesoftware/smackx/xevent/MessageEventManager.java index ca69a2d50..c3592b88f 100644 --- a/smack-legacy/src/main/java/org/jivesoftware/smackx/xevent/MessageEventManager.java +++ b/smack-legacy/src/main/java/org/jivesoftware/smackx/xevent/MessageEventManager.java @@ -95,9 +95,7 @@ public class MessageEventManager extends Manager { message.getFrom(), messageEvent.getPacketID(), eventType.concat("Notification")); - - }; - + } }, PACKET_FILTER); INSTANCES.put(connection, this); } diff --git a/smack-legacy/src/main/java/org/jivesoftware/smackx/xroster/RosterExchangeManager.java b/smack-legacy/src/main/java/org/jivesoftware/smackx/xroster/RosterExchangeManager.java index c4202c5aa..da1df08c0 100644 --- a/smack-legacy/src/main/java/org/jivesoftware/smackx/xroster/RosterExchangeManager.java +++ b/smack-legacy/src/main/java/org/jivesoftware/smackx/xroster/RosterExchangeManager.java @@ -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); }