Skip to content

Commit 5efce56

Browse files
palfvinjzheaux
authored andcommitted
Fix Example 13 in documentation
- Change parameter reference to match declaration Closes gh-584
1 parent 94e2d0f commit 5efce56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/docs/asciidoc/index.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,9 @@ Using `AbstractContextMapper`, the `PersonContextMapper` shown earlier can thus
734734
private static class PersonContextMapper **extends AbstractContextMapper** {
735735
public Object **doMapFromContext**(DirContextOperations ctx) {
736736
Person p = new Person();
737-
p.setFullName(context.getStringAttribute("cn"));
738-
p.setLastName(context.getStringAttribute("sn"));
739-
p.setDescription(context.getStringAttribute("description"));
737+
p.setFullName(ctx.getStringAttribute("cn"));
738+
p.setLastName(ctx.getStringAttribute("sn"));
739+
p.setDescription(ctx.getStringAttribute("description"));
740740
return p;
741741
}
742742
}

0 commit comments

Comments
 (0)