mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Remove 'throws Exception' from DNSUtil.resolve…(String)
This commit is contained in:
parent
994e45acae
commit
a90c1ac845
1 changed files with 3 additions and 5 deletions
|
@ -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<HostAddress> resolveXMPPDomain(String domain) throws Exception {
|
||||
public static List<HostAddress> 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<HostAddress> resolveXMPPServerDomain(String domain) throws Exception {
|
||||
public static List<HostAddress> 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<HostAddress> resolveDomain(String domain, DomainType domainType) throws Exception {
|
||||
private static List<HostAddress> resolveDomain(String domain, DomainType domainType) {
|
||||
List<HostAddress> addresses = new ArrayList<HostAddress>();
|
||||
|
||||
// Step one: Do SRV lookups
|
||||
|
|
Loading…
Reference in a new issue