From 027358fc6350e1fafe24826f98ebca39c4438c5d Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 22 May 2020 15:34:27 +0200 Subject: [PATCH] [softwareinfo] Remove unnecessary throws declarations --- .../smackx/softwareinfo/SoftwareInfoManager.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/softwareinfo/SoftwareInfoManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/softwareinfo/SoftwareInfoManager.java index 11af9b810..595eb3b7c 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/softwareinfo/SoftwareInfoManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/softwareinfo/SoftwareInfoManager.java @@ -16,7 +16,6 @@ */ package org.jivesoftware.smackx.softwareinfo; -import java.io.IOException; import java.util.Map; import java.util.WeakHashMap; @@ -26,8 +25,6 @@ import org.jivesoftware.smack.SmackException.NoResponseException; import org.jivesoftware.smack.SmackException.NotConnectedException; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException.XMPPErrorException; -import org.jivesoftware.smack.parsing.SmackParsingException; -import org.jivesoftware.smack.xml.XmlPullParserException; import org.jivesoftware.smackx.disco.ServiceDiscoveryManager; import org.jivesoftware.smackx.disco.packet.DiscoverInfo; import org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm; @@ -48,7 +45,7 @@ public final class SoftwareInfoManager extends Manager { private static final Map INSTANCES = new WeakHashMap<>(); private final ServiceDiscoveryManager serviceDiscoveryManager; - public static synchronized SoftwareInfoManager getInstanceFor (XMPPConnection connection) throws IOException, XmlPullParserException, SmackParsingException { + public static synchronized SoftwareInfoManager getInstanceFor (XMPPConnection connection) { SoftwareInfoManager manager = INSTANCES.get(connection); if (manager == null) { manager = new SoftwareInfoManager(connection); @@ -57,7 +54,7 @@ public final class SoftwareInfoManager extends Manager { return manager; } - private SoftwareInfoManager(XMPPConnection connection) throws IOException, XmlPullParserException, SmackParsingException { + private SoftwareInfoManager(XMPPConnection connection) { super(connection); serviceDiscoveryManager = ServiceDiscoveryManager.getInstanceFor(connection); }