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:
parent
9adc537013
commit
574493d175
|
@ -224,7 +224,7 @@ public class ClassUtils {
|
|||
if (cls == null) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
return getPackageName(cls.getName());
|
||||
return cls.getPackage().getName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue