From 6be3662fed8f110f3319e93777690505e2b0b972 Mon Sep 17 00:00:00 2001 From: Kim Saabye Pedersen Date: Tue, 13 Jun 2017 14:54:24 +0200 Subject: [PATCH] Cast is needed or compile will fail The cast is already there other places in the doc. --- src/docs/asciidoc/index.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/index.adoc b/src/docs/asciidoc/index.adoc index 6eac6764..4ea50f8e 100644 --- a/src/docs/asciidoc/index.adoc +++ b/src/docs/asciidoc/index.adoc @@ -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 ---- -Also, `org.springframework.ldap.test.unboundid.LdapTestUtils` provide methods to work with embedded ldap server programmatically. \ No newline at end of file +Also, `org.springframework.ldap.test.unboundid.LdapTestUtils` provide methods to work with embedded ldap server programmatically.