Cast is needed or compile will fail
The cast is already there other places in the doc.
This commit is contained in:
committed by
Rob Winch
parent
08e8ae289b
commit
6be3662fed
@@ -364,7 +364,7 @@ public class PersonRepoImpl implements PersonRepo {
|
||||
public String mapFromAttributes(Attributes attrs)
|
||||
throws NamingException {
|
||||
|
||||
return attrs.get("cn").get();
|
||||
return (String) attrs.get("cn").get();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -2674,4 +2674,4 @@ Another way to work against an embedded ldap server is using `org.springframewor
|
||||
</bean>
|
||||
----
|
||||
|
||||
Also, `org.springframework.ldap.test.unboundid.LdapTestUtils` provide methods to work with embedded ldap server programmatically.
|
||||
Also, `org.springframework.ldap.test.unboundid.LdapTestUtils` provide methods to work with embedded ldap server programmatically.
|
||||
|
||||
Reference in New Issue
Block a user