Fix Example 13 in documentation
- Change parameter reference to match declaration Closes gh-584
This commit is contained in:
committed by
Josh Cummings
parent
94e2d0f883
commit
5efce560f4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user