You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (Jira)" <ji...@apache.org> on 2020/01/10 11:20:00 UTC

[jira] [Resolved] (SLING-8975) Sling API: Resource.getResourceType should be @Nullable

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

Stefan Seifert resolved SLING-8975.
-----------------------------------
      Assignee:     (was: Stefan Seifert)
    Resolution: Won't Fix

set this ticket to won't fix - see https://lists.apache.org/thread.html/rce8e3d424bd539e18bd5f747eafb0236200c37e6b095ebd860854eb5%40%3Cdev.sling.apache.org%3E

> Sling API: Resource.getResourceType should be @Nullable
> -------------------------------------------------------
>
>                 Key: SLING-8975
>                 URL: https://issues.apache.org/jira/browse/SLING-8975
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: API 2.21.0
>            Reporter: Stefan Seifert
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> currently, the {{getResourceType()}} method of the {{Resource}} interface is marked as {{@NotNull}} in the API.
> imho this is wrong:
> * it is not mandatory that every resource has a resource type
> * the JCR resource provider uses the JCR primary type as "fallback" value when no resource type is defined as property, but this is not necessary the case for other resource providers or synthetic resources



--
This message was sent by Atlassian Jira
(v8.3.4#803005)