Thomas Morf created SLING-8686:
----------------------------------
Summary: Example code variable name wrong in Sling API CRUD,
updating a property
Key: SLING-8686
URL: https://issues.apache.org/jira/browse/SLING-8686
Project: Sling
Issue Type: Improvement
Components: Documentation
Reporter: Thomas Morf
On the page:
[https://sling.apache.org/documentation/the-sling-engine/sling-api-crud-support.html#updating-a-property]
Paragraph:
*Sling API CRUD*
The variable name myNode in the code example should probably be "myResource",
if I understand the intention of the code correctly.
Resource myResource = resourceResolver.getResource("/myresource");
ModifiableValueMap properties = **myNode**.adaptTo(ModifiableValueMap.class);
--
This message was sent by Atlassian Jira
(v8.3.2#803003)