diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java b/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java index 2817c5506..6e34f9400 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java @@ -111,9 +111,8 @@ public class DNSUtil { * @param domain the domain. * @return List of HostAddress, which encompasses the hostname and port that the * XMPP server can be reached at for the specified domain. - * @throws Exception */ - public static List resolveXMPPDomain(String domain) throws Exception { + public static List resolveXMPPDomain(String domain) { domain = idnaTransformer.transform(domain); if (dnsResolver == null) { LOGGER.warning("No DNS Resolver active in Smack, will be unable to perform DNS SRV lookups"); @@ -140,9 +139,8 @@ public class DNSUtil { * @param domain the domain. * @return List of HostAddress, which encompasses the hostname and port that the * XMPP server can be reached at for the specified domain. - * @throws Exception */ - public static List resolveXMPPServerDomain(String domain) throws Exception { + public static List resolveXMPPServerDomain(String domain) { domain = idnaTransformer.transform(domain); if (dnsResolver == null) { LOGGER.warning("No DNS Resolver active in Smack, will be unable to perform DNS SRV lookups"); @@ -153,7 +151,7 @@ public class DNSUtil { return resolveDomain(domain, DomainType.Server); } - private static List resolveDomain(String domain, DomainType domainType) throws Exception { + private static List resolveDomain(String domain, DomainType domainType) { List addresses = new ArrayList(); // Step one: Do SRV lookups