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

Martin Schulze updated SLING-12827:
-----------------------------------
    Description: 
https://github.com/apache/sling-org-apache-sling-adapter/blob/master/src/main/java/org/apache/sling/adapter/Adaption.java#L32

- _adapters_ and _adaptables_ should be reversed
- strategy should be ported ReferencePolicy.STATIC?
- org.apache.sling.api.Resource -> org.apache.sling.api.resource.Resource

  was:
https://github.com/apache/sling-org-apache-sling-adapter/blob/master/src/main/java/org/apache/sling/adapter/Adaption.java#L32

- _adapters_ and _adaptables_ should be reversed
- strategy should be ported ReferencePolicy.STATIC
- org.apache.sling.api.Resource -> org.apache.sling.api.resource.Resource


> Sample in Adaption.java is wrong/outdated
> -----------------------------------------
>
>                 Key: SLING-12827
>                 URL: https://issues.apache.org/jira/browse/SLING-12827
>             Project: Sling
>          Issue Type: Bug
>          Components: Samples
>            Reporter: Martin Schulze
>            Priority: Minor
>
> https://github.com/apache/sling-org-apache-sling-adapter/blob/master/src/main/java/org/apache/sling/adapter/Adaption.java#L32
> - _adapters_ and _adaptables_ should be reversed
> - strategy should be ported ReferencePolicy.STATIC?
> - org.apache.sling.api.Resource -> org.apache.sling.api.resource.Resource



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to