Details
Description
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.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Robert Scholte [ rfscholte ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.10 [ 15020 ] |
Patch has been applied, added some javadoc and an extra test to check the handling of default packages. Thanks Benjamin.