1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 15:32:06 +01:00

DNSUtil does not initialilze resolvers

Add missing dot ('.') to String.

Fixes SMACK-635.
This commit is contained in:
Florian Schmaus 2015-02-20 08:24:22 +01:00
parent f55f9f7828
commit 5cf99508ad

View file

@ -50,7 +50,7 @@ public class DNSUtil {
"dnsjava.DNSJavaResolver" }; "dnsjava.DNSJavaResolver" };
for (String resolver :RESOLVERS) { for (String resolver :RESOLVERS) {
DNSResolver availableResolver = null; DNSResolver availableResolver = null;
String resolverFull = "org.jivesoftware.smack.util.dns" + resolver; String resolverFull = "org.jivesoftware.smack.util.dns." + resolver;
try { try {
Class<?> resolverClass = Class.forName(resolverFull); Class<?> resolverClass = Class.forName(resolverFull);
Method getInstanceMethod = resolverClass.getMethod("getInstance"); Method getInstanceMethod = resolverClass.getMethod("getInstance");