@@ -840,7 +840,7 @@ public Object executeWithContext(DirContext ctx) throws javax.naming.NamingExcep
840840 */
841841 @ Override
842842 public <T > T lookup (final Name dn , final AttributesMapper <T > mapper ) {
843- return executeReadOnly (ctx -> {
843+ return executeReadOnly (( ctx ) -> {
844844 Attributes attributes = ctx .getAttributes (dn );
845845 return mapper .mapFromAttributes (attributes );
846846 });
@@ -852,7 +852,7 @@ public <T> T lookup(final Name dn, final AttributesMapper<T> mapper) {
852852 @ Override
853853 public <T > T lookup (final String dn , final AttributesMapper <T > mapper ) {
854854
855- return executeReadOnly (ctx -> {
855+ return executeReadOnly (( ctx ) -> {
856856 Attributes attributes = ctx .getAttributes (dn );
857857 return mapper .mapFromAttributes (attributes );
858858 });
@@ -863,7 +863,7 @@ public <T> T lookup(final String dn, final AttributesMapper<T> mapper) {
863863 */
864864 @ Override
865865 public <T > T lookup (final Name dn , final ContextMapper <T > mapper ) {
866- return executeReadOnly (ctx -> {
866+ return executeReadOnly (( ctx ) -> {
867867 Object object = ctx .lookup (dn );
868868 return mapper .mapFromContext (object );
869869 });
@@ -874,7 +874,7 @@ public <T> T lookup(final Name dn, final ContextMapper<T> mapper) {
874874 */
875875 @ Override
876876 public <T > T lookup (final String dn , final ContextMapper <T > mapper ) {
877- return executeReadOnly (ctx -> {
877+ return executeReadOnly (( ctx ) -> {
878878 Object object = ctx .lookup (dn );
879879 return mapper .mapFromContext (object );
880880 });
@@ -885,7 +885,7 @@ public <T> T lookup(final String dn, final ContextMapper<T> mapper) {
885885 */
886886 @ Override
887887 public <T > T lookup (final Name dn , final String [] attributes , final AttributesMapper <T > mapper ) {
888- return executeReadOnly (ctx -> {
888+ return executeReadOnly (( ctx ) -> {
889889 Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
890890 return mapper .mapFromAttributes (filteredAttributes );
891891 });
@@ -896,7 +896,7 @@ public <T> T lookup(final Name dn, final String[] attributes, final AttributesMa
896896 */
897897 @ Override
898898 public <T > T lookup (final String dn , final String [] attributes , final AttributesMapper <T > mapper ) {
899- return executeReadOnly (ctx -> {
899+ return executeReadOnly (( ctx ) -> {
900900 Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
901901 return mapper .mapFromAttributes (filteredAttributes );
902902 });
@@ -907,7 +907,7 @@ public <T> T lookup(final String dn, final String[] attributes, final Attributes
907907 */
908908 @ Override
909909 public <T > T lookup (final Name dn , final String [] attributes , final ContextMapper <T > mapper ) {
910- return executeReadOnly (ctx -> {
910+ return executeReadOnly (( ctx ) -> {
911911 Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
912912 DirContextAdapter contextAdapter = new DirContextAdapter (filteredAttributes , dn );
913913 return mapper .mapFromContext (contextAdapter );
@@ -919,7 +919,7 @@ public <T> T lookup(final Name dn, final String[] attributes, final ContextMappe
919919 */
920920 @ Override
921921 public <T > T lookup (final String dn , final String [] attributes , final ContextMapper <T > mapper ) {
922- return executeReadOnly (ctx -> {
922+ return executeReadOnly (( ctx ) -> {
923923 Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
924924 LdapName name = LdapUtils .newLdapName (dn );
925925 DirContextAdapter contextAdapter = new DirContextAdapter (filteredAttributes , name );
@@ -958,7 +958,7 @@ public Object executeWithContext(DirContext ctx) throws javax.naming.NamingExcep
958958 */
959959 @ Override
960960 public void bind (final Name dn , final Object obj , final Attributes attributes ) {
961- executeReadWrite (ctx -> {
961+ executeReadWrite (( ctx ) -> {
962962 ctx .bind (dn , obj , attributes );
963963 return null ;
964964 });
@@ -969,7 +969,7 @@ public void bind(final Name dn, final Object obj, final Attributes attributes) {
969969 */
970970 @ Override
971971 public void bind (final String dn , final Object obj , final Attributes attributes ) {
972- executeReadWrite (ctx -> {
972+ executeReadWrite (( ctx ) -> {
973973 ctx .bind (dn , obj , attributes );
974974 return null ;
975975 });
@@ -1018,28 +1018,28 @@ public void unbind(final String dn, boolean recursive) {
10181018 }
10191019
10201020 private void doUnbind (final Name dn ) {
1021- executeReadWrite (ctx -> {
1021+ executeReadWrite (( ctx ) -> {
10221022 ctx .unbind (dn );
10231023 return null ;
10241024 });
10251025 }
10261026
10271027 private void doUnbind (final String dn ) {
1028- executeReadWrite (ctx -> {
1028+ executeReadWrite (( ctx ) -> {
10291029 ctx .unbind (dn );
10301030 return null ;
10311031 });
10321032 }
10331033
10341034 private void doUnbindRecursively (final Name dn ) {
1035- executeReadWrite (ctx -> {
1035+ executeReadWrite (( ctx ) -> {
10361036 deleteRecursively (ctx , LdapUtils .newLdapName (dn ));
10371037 return null ;
10381038 });
10391039 }
10401040
10411041 private void doUnbindRecursively (final String dn ) {
1042- executeReadWrite (ctx -> {
1042+ executeReadWrite (( ctx ) -> {
10431043 deleteRecursively (ctx , LdapUtils .newLdapName (dn ));
10441044 return null ;
10451045 });
0 commit comments