Fix Example 13 in documentation

- Change parameter reference to match declaration

Closes gh-584
This commit is contained in:
Peter Alfvin
2021-09-06 16:20:19 -07:00
committed by Josh Cummings
parent 94e2d0f883
commit 5efce560f4

View File

@@ -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;
}
}