Cast is needed or compile will fail

The cast is already there other places in the doc.
This commit is contained in:
Kim Saabye Pedersen
2017-06-13 14:54:24 +02:00
committed by Rob Winch
parent 08e8ae289b
commit 6be3662fed

View File

@@ -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.