You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ashok Pelluru (Jira)" <ji...@apache.org> on 2022/06/27 12:20:00 UTC

[jira] [Resolved] (SLING-8686) Example code variable name wrong in Sling API CRUD, updating a property

     [ https://issues.apache.org/jira/browse/SLING-8686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashok Pelluru resolved SLING-8686.
----------------------------------
    Resolution: Fixed

closing the story since PR already merged

> 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
>            Priority: Trivial
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.20.7#820007)