You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/08/01 09:59:49 UTC

[jira] [Commented] (ISIS-482) Allow as "choices" return type any descendant of "Collection"

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

ASF subversion and git services commented on ISIS-482:
------------------------------------------------------

Commit 6126bb1da51bfa78fb788da4c10a8555dab3b46b in branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=6126bb1 ]

ISIS-482: tidy-up

                
> Allow as "choices" return type any descendant of "Collection"
> -------------------------------------------------------------
>
>                 Key: ISIS-482
>                 URL: https://issues.apache.org/jira/browse/ISIS-482
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: core-1.3.0
>            Reporter: Oscar Bou
>            Assignee: Dan Haywood
>         Attachments: patch.diff
>
>
> Current implementation only allows to return a List with the choices for a given property, action or action parameter.
> It should be improved to allow to return any descendant of java.util.Collection.
> All these cases should be valid:
>          class Customer {
>              @SuppressWarnings("unused")
>             public void someAction(final int x, final long y, final long z) {
>             }
>  
>              @SuppressWarnings("unused")
>             public Collection<Integer> choices0SomeAction() {
>                  return Collections.emptyList();
>              }
>  
>              @SuppressWarnings("unused")
>              public List<Long> choices1SomeAction() {
>                  return Collections.emptyList();
>              }
>             @SuppressWarnings("unused")
>             public Set<Long> choices2SomeAction() {
>                 return Collections.emptySet();
>             }
>          }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira