[
http://jira.codehaus.org/browse/QDOX-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte resolved QDOX-176.
---------------------------------
Assignee: Robert Scholte
Resolution: Fixed
Fix Version/s: 1.10
Patch has been applied, added some javadoc and an extra test to check the
handling of default packages. Thanks Benjamin.
> 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
> Assignee: Robert Scholte
> Priority: Minor
> Fix For: 1.10
>
> 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