pointless catch statement

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10094 71c3de6d-444a-0410-be80-ed276b4c234a

Originally-Committed-As: 7e9e2002e15130d0a87009e1cd22fa52eea39a87
This commit is contained in:
kohsuke 2008-06-13 21:56:16 +00:00
parent 46d6b2ecec
commit 960e503e23

View file

@ -259,8 +259,6 @@ public class LDAPSecurityRealm extends SecurityRealm {
port = Integer.parseInt(m.group(2));
Socket s = new Socket(adrs,port);
s.close();
} catch (NumberFormatException x) {
// impossible, because of the regexp
} catch (UnknownHostException x) {
error("Unknown host: "+x.getMessage());
return;