From 960e503e23884a499164adf651744f36eaa7b501 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Fri, 13 Jun 2008 21:56:16 +0000 Subject: [PATCH] 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 --- core/src/main/java/hudson/security/LDAPSecurityRealm.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/main/java/hudson/security/LDAPSecurityRealm.java b/core/src/main/java/hudson/security/LDAPSecurityRealm.java index 3262fd4..10c0f08 100644 --- a/core/src/main/java/hudson/security/LDAPSecurityRealm.java +++ b/core/src/main/java/hudson/security/LDAPSecurityRealm.java @@ -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;