code cleanup

This commit is contained in:
Daniel Gultsch 2014-03-27 14:41:01 +01:00
parent 8988873d77
commit 592068e7cf

View file

@ -36,17 +36,10 @@ public class DNSHelper {
}
}
}
} catch (ClassNotFoundException e) {
ip = InetAddress.getByName("8.8.8.8");
} catch (NoSuchMethodException e) {
ip = InetAddress.getByName("8.8.8.8");
} catch (IllegalAccessException e) {
ip = InetAddress.getByName("8.8.8.8");
} catch (IllegalArgumentException e) {
ip = InetAddress.getByName("8.8.8.8");
} catch (InvocationTargetException e) {
ip = InetAddress.getByName("8.8.8.8");
} catch (Exception e) {
Log.d("xmppService","error during system calls");
}
ip = InetAddress.getByName("8.8.8.8");
return queryDNS(host, ip);
}
@ -90,7 +83,6 @@ public class DNSHelper {
datagramSocket.setSoTimeout(3000);
datagramSocket.receive(receivePacket);
if (receiveData[3] != -128) {
Log.d("xmppService", "not the right count");
namePort.putString("error", "nosrv");
return namePort;
}