Add method to safely & easily get the package name for a JavaClass
------------------------------------------------------------------

                 Key: QDOX-176
                 URL: http://jira.codehaus.org/browse/QDOX-176
             Project: QDox
          Issue Type: Wish
          Components: Java API
    Affects Versions: 1.9.2
            Reporter: Benjamin Bentmann
            Priority: Minor
         Attachments: get-package-name.patch

The impl of {{JavaClass.getFullyQualifiedName()}} suggests that the return 
value of {{JavaClass.getPackage()}} can be {{null}} which makes getting the 
package name for a class a cumbersome operation. The attached patch adds a new 
method {{getPackageName()}} that handles potential null and safes the caller 
from those boring checks.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to