[jboss-jira] [JBoss JIRA] Resolved: (JBAS-6216) ManagementView.getComponentsForType(type) returns null, rather than an empty Set, if no Components of the specified type are deployed

Scott M Stark (JIRA) jira-events at lists.jboss.org
Fri Nov 21 10:30:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBAS-6216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott M Stark resolved JBAS-6216.
---------------------------------

    Fix Version/s: JBossAS-5.0.0.GA
       Resolution: Done


All the collections returned are now non-null

> ManagementView.getComponentsForType(type) returns null, rather than an empty Set, if no Components of the specified type are deployed
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-6216
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6216
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: ProfileService
>            Reporter: Ian Springer
>            Assignee: Scott M Stark
>            Priority: Minor
>             Fix For: JBossAS-5.0.0.GA
>
>
> This is a public-facing API so should return an empty Set rather than null to make it less error-prone and easier to use. There are a bunch of other methods that return Collections in the ManagementView interface - these should also be reworked to never return null. The Javadoc should also indicate the methods will never return null.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list