From 2f3d9347fbb3cda0daaa12f9fbe04389d76dbbbc Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Thu, 1 Feb 2024 17:20:15 -0700 Subject: [PATCH] Fix Checkstyle --- .../ldap/core/LdapTemplate.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java b/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java index 084e0522e..07651c113 100644 --- a/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java +++ b/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java @@ -840,7 +840,7 @@ public Object executeWithContext(DirContext ctx) throws javax.naming.NamingExcep */ @Override public T lookup(final Name dn, final AttributesMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); }); @@ -852,7 +852,7 @@ public T lookup(final Name dn, final AttributesMapper mapper) { @Override public T lookup(final String dn, final AttributesMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); }); @@ -863,7 +863,7 @@ public T lookup(final String dn, final AttributesMapper mapper) { */ @Override public T lookup(final Name dn, final ContextMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Object object = ctx.lookup(dn); return mapper.mapFromContext(object); }); @@ -874,7 +874,7 @@ public T lookup(final Name dn, final ContextMapper mapper) { */ @Override public T lookup(final String dn, final ContextMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Object object = ctx.lookup(dn); return mapper.mapFromContext(object); }); @@ -885,7 +885,7 @@ public T lookup(final String dn, final ContextMapper mapper) { */ @Override public T lookup(final Name dn, final String[] attributes, final AttributesMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); }); @@ -896,7 +896,7 @@ public T lookup(final Name dn, final String[] attributes, final AttributesMa */ @Override public T lookup(final String dn, final String[] attributes, final AttributesMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); }); @@ -907,7 +907,7 @@ public T lookup(final String dn, final String[] attributes, final Attributes */ @Override public T lookup(final Name dn, final String[] attributes, final ContextMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); DirContextAdapter contextAdapter = new DirContextAdapter(filteredAttributes, dn); return mapper.mapFromContext(contextAdapter); @@ -919,7 +919,7 @@ public T lookup(final Name dn, final String[] attributes, final ContextMappe */ @Override public T lookup(final String dn, final String[] attributes, final ContextMapper mapper) { - return executeReadOnly(ctx -> { + return executeReadOnly((ctx) -> { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); LdapName name = LdapUtils.newLdapName(dn); DirContextAdapter contextAdapter = new DirContextAdapter(filteredAttributes, name); @@ -958,7 +958,7 @@ public Object executeWithContext(DirContext ctx) throws javax.naming.NamingExcep */ @Override public void bind(final Name dn, final Object obj, final Attributes attributes) { - executeReadWrite(ctx -> { + executeReadWrite((ctx) -> { ctx.bind(dn, obj, attributes); return null; }); @@ -969,7 +969,7 @@ public void bind(final Name dn, final Object obj, final Attributes attributes) { */ @Override public void bind(final String dn, final Object obj, final Attributes attributes) { - executeReadWrite(ctx -> { + executeReadWrite((ctx) -> { ctx.bind(dn, obj, attributes); return null; }); @@ -1018,28 +1018,28 @@ public void unbind(final String dn, boolean recursive) { } private void doUnbind(final Name dn) { - executeReadWrite(ctx -> { + executeReadWrite((ctx) -> { ctx.unbind(dn); return null; }); } private void doUnbind(final String dn) { - executeReadWrite(ctx -> { + executeReadWrite((ctx) -> { ctx.unbind(dn); return null; }); } private void doUnbindRecursively(final Name dn) { - executeReadWrite(ctx -> { + executeReadWrite((ctx) -> { deleteRecursively(ctx, LdapUtils.newLdapName(dn)); return null; }); } private void doUnbindRecursively(final String dn) { - executeReadWrite(ctx -> { + executeReadWrite((ctx) -> { deleteRecursively(ctx, LdapUtils.newLdapName(dn)); return null; });