You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Jukka Zitting (Commented) (JIRA)" <ji...@apache.org> on 2012/03/11 17:02:00 UTC

[jira] [Commented] (OAK-8) Make return types of NodeState#getProperties() and NodeState#getChildNodeEntries() covariant

    [ https://issues.apache.org/jira/browse/OAK-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227073#comment-13227073 ] 

Jukka Zitting commented on OAK-8:
---------------------------------

+1 didn't think of that
                
> Make return types of NodeState#getProperties() and NodeState#getChildNodeEntries() covariant
> --------------------------------------------------------------------------------------------
>
>                 Key: OAK-8
>                 URL: https://issues.apache.org/jira/browse/OAK-8
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Michael Dürig
>             Fix For: 0.1
>
>         Attachments: OAK-8.patch
>
>
> The current invariant return types do not allow for example for
> {code}
> @Override
> public Iterable<PropertyState> getProperties() {
>     return new ArrayList<PropertyStateImpl>();
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira