@@ -840,7 +840,7 @@ public Object executeWithContext(DirContext ctx) throws javax.naming.NamingExcep
840
840
*/
841
841
@ Override
842
842
public <T > T lookup (final Name dn , final AttributesMapper <T > mapper ) {
843
- return executeReadOnly (ctx -> {
843
+ return executeReadOnly (( ctx ) -> {
844
844
Attributes attributes = ctx .getAttributes (dn );
845
845
return mapper .mapFromAttributes (attributes );
846
846
});
@@ -852,7 +852,7 @@ public <T> T lookup(final Name dn, final AttributesMapper<T> mapper) {
852
852
@ Override
853
853
public <T > T lookup (final String dn , final AttributesMapper <T > mapper ) {
854
854
855
- return executeReadOnly (ctx -> {
855
+ return executeReadOnly (( ctx ) -> {
856
856
Attributes attributes = ctx .getAttributes (dn );
857
857
return mapper .mapFromAttributes (attributes );
858
858
});
@@ -863,7 +863,7 @@ public <T> T lookup(final String dn, final AttributesMapper<T> mapper) {
863
863
*/
864
864
@ Override
865
865
public <T > T lookup (final Name dn , final ContextMapper <T > mapper ) {
866
- return executeReadOnly (ctx -> {
866
+ return executeReadOnly (( ctx ) -> {
867
867
Object object = ctx .lookup (dn );
868
868
return mapper .mapFromContext (object );
869
869
});
@@ -874,7 +874,7 @@ public <T> T lookup(final Name dn, final ContextMapper<T> mapper) {
874
874
*/
875
875
@ Override
876
876
public <T > T lookup (final String dn , final ContextMapper <T > mapper ) {
877
- return executeReadOnly (ctx -> {
877
+ return executeReadOnly (( ctx ) -> {
878
878
Object object = ctx .lookup (dn );
879
879
return mapper .mapFromContext (object );
880
880
});
@@ -885,7 +885,7 @@ public <T> T lookup(final String dn, final ContextMapper<T> mapper) {
885
885
*/
886
886
@ Override
887
887
public <T > T lookup (final Name dn , final String [] attributes , final AttributesMapper <T > mapper ) {
888
- return executeReadOnly (ctx -> {
888
+ return executeReadOnly (( ctx ) -> {
889
889
Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
890
890
return mapper .mapFromAttributes (filteredAttributes );
891
891
});
@@ -896,7 +896,7 @@ public <T> T lookup(final Name dn, final String[] attributes, final AttributesMa
896
896
*/
897
897
@ Override
898
898
public <T > T lookup (final String dn , final String [] attributes , final AttributesMapper <T > mapper ) {
899
- return executeReadOnly (ctx -> {
899
+ return executeReadOnly (( ctx ) -> {
900
900
Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
901
901
return mapper .mapFromAttributes (filteredAttributes );
902
902
});
@@ -907,7 +907,7 @@ public <T> T lookup(final String dn, final String[] attributes, final Attributes
907
907
*/
908
908
@ Override
909
909
public <T > T lookup (final Name dn , final String [] attributes , final ContextMapper <T > mapper ) {
910
- return executeReadOnly (ctx -> {
910
+ return executeReadOnly (( ctx ) -> {
911
911
Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
912
912
DirContextAdapter contextAdapter = new DirContextAdapter (filteredAttributes , dn );
913
913
return mapper .mapFromContext (contextAdapter );
@@ -919,7 +919,7 @@ public <T> T lookup(final Name dn, final String[] attributes, final ContextMappe
919
919
*/
920
920
@ Override
921
921
public <T > T lookup (final String dn , final String [] attributes , final ContextMapper <T > mapper ) {
922
- return executeReadOnly (ctx -> {
922
+ return executeReadOnly (( ctx ) -> {
923
923
Attributes filteredAttributes = ctx .getAttributes (dn , attributes );
924
924
LdapName name = LdapUtils .newLdapName (dn );
925
925
DirContextAdapter contextAdapter = new DirContextAdapter (filteredAttributes , name );
@@ -958,7 +958,7 @@ public Object executeWithContext(DirContext ctx) throws javax.naming.NamingExcep
958
958
*/
959
959
@ Override
960
960
public void bind (final Name dn , final Object obj , final Attributes attributes ) {
961
- executeReadWrite (ctx -> {
961
+ executeReadWrite (( ctx ) -> {
962
962
ctx .bind (dn , obj , attributes );
963
963
return null ;
964
964
});
@@ -969,7 +969,7 @@ public void bind(final Name dn, final Object obj, final Attributes attributes) {
969
969
*/
970
970
@ Override
971
971
public void bind (final String dn , final Object obj , final Attributes attributes ) {
972
- executeReadWrite (ctx -> {
972
+ executeReadWrite (( ctx ) -> {
973
973
ctx .bind (dn , obj , attributes );
974
974
return null ;
975
975
});
@@ -1018,28 +1018,28 @@ public void unbind(final String dn, boolean recursive) {
1018
1018
}
1019
1019
1020
1020
private void doUnbind (final Name dn ) {
1021
- executeReadWrite (ctx -> {
1021
+ executeReadWrite (( ctx ) -> {
1022
1022
ctx .unbind (dn );
1023
1023
return null ;
1024
1024
});
1025
1025
}
1026
1026
1027
1027
private void doUnbind (final String dn ) {
1028
- executeReadWrite (ctx -> {
1028
+ executeReadWrite (( ctx ) -> {
1029
1029
ctx .unbind (dn );
1030
1030
return null ;
1031
1031
});
1032
1032
}
1033
1033
1034
1034
private void doUnbindRecursively (final Name dn ) {
1035
- executeReadWrite (ctx -> {
1035
+ executeReadWrite (( ctx ) -> {
1036
1036
deleteRecursively (ctx , LdapUtils .newLdapName (dn ));
1037
1037
return null ;
1038
1038
});
1039
1039
}
1040
1040
1041
1041
private void doUnbindRecursively (final String dn ) {
1042
- executeReadWrite (ctx -> {
1042
+ executeReadWrite (( ctx ) -> {
1043
1043
deleteRecursively (ctx , LdapUtils .newLdapName (dn ));
1044
1044
return null ;
1045
1045
});
0 commit comments