提交 7e9e2002 编写于 作者: K kohsuke

pointless catch statement

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10094 71c3de6d-444a-0410-be80-ed276b4c234a
上级 499d10ce
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册