From dc13f25dee3753437cbdfae3508f2e760b557448 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Fri, 25 Aug 2006 16:04:27 +0000 Subject: [PATCH] Tidied up formatting. --- .../org/acegisecurity/ldap/LdapTemplate.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/ldap/LdapTemplate.java b/core/src/main/java/org/acegisecurity/ldap/LdapTemplate.java index 007e07a469..a469df5c65 100644 --- a/core/src/main/java/org/acegisecurity/ldap/LdapTemplate.java +++ b/core/src/main/java/org/acegisecurity/ldap/LdapTemplate.java @@ -133,21 +133,21 @@ public class LdapTemplate { public boolean nameExists(final String dn) { Boolean exists = (Boolean) execute(new LdapCallback() { - public Object doInDirContext(DirContext ctx) - throws NamingException { - try { - Object obj = ctx.lookup(LdapUtils.getRelativeName(dn, ctx)); - if (obj instanceof Context) { - LdapUtils.closeContext((Context) obj); - } - - } catch (NameNotFoundException nnfe) { - return Boolean.FALSE; + public Object doInDirContext(DirContext ctx) + throws NamingException { + try { + Object obj = ctx.lookup(LdapUtils.getRelativeName(dn, ctx)); + if (obj instanceof Context) { + LdapUtils.closeContext((Context) obj); } - return Boolean.TRUE; + } catch (NameNotFoundException nnfe) { + return Boolean.FALSE; } - }); + + return Boolean.TRUE; + } + }); return exists.booleanValue(); }