From 5efce560f4c854039197f5edd4906ddc1e221cd5 Mon Sep 17 00:00:00 2001 From: Peter Alfvin Date: Mon, 6 Sep 2021 16:20:19 -0700 Subject: [PATCH] Fix Example 13 in documentation - Change parameter reference to match declaration Closes gh-584 --- src/docs/asciidoc/index.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/asciidoc/index.adoc b/src/docs/asciidoc/index.adoc index 9798a7de..f7e7bf51 100644 --- a/src/docs/asciidoc/index.adoc +++ b/src/docs/asciidoc/index.adoc @@ -734,9 +734,9 @@ Using `AbstractContextMapper`, the `PersonContextMapper` shown earlier can thus private static class PersonContextMapper **extends AbstractContextMapper** { public Object **doMapFromContext**(DirContextOperations ctx) { Person p = new Person(); - p.setFullName(context.getStringAttribute("cn")); - p.setLastName(context.getStringAttribute("sn")); - p.setDescription(context.getStringAttribute("description")); + p.setFullName(ctx.getStringAttribute("cn")); + p.setLastName(ctx.getStringAttribute("sn")); + p.setDescription(ctx.getStringAttribute("description")); return p; } }