Improving getPackageName(Class) to be class.getPackage().getName(). This method then becomes one of the null-protection only methods... which are imo struggling for justification

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@763561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2009-04-09 08:38:53 +00:00
parent 9adc537013
commit 574493d175
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ public class ClassUtils {
if (cls == null) { if (cls == null) {
return StringUtils.EMPTY; return StringUtils.EMPTY;
} }
return getPackageName(cls.getName()); return cls.getPackage().getName();
} }
/** /**