revised static annotation check

This commit is contained in:
Juergen Hoeller
2009-07-21 14:12:16 +00:00
parent b2f9786ee8
commit 364641e9bc
11 changed files with 56 additions and 34 deletions

View File

@@ -368,7 +368,7 @@ public abstract class ClassUtils {
* @param clazz the class to check
* @return the user-defined class
*/
public static Class getUserClass(Class clazz) {
public static Class<?> getUserClass(Class clazz) {
return (clazz != null && clazz.getName().contains(CGLIB_CLASS_SEPARATOR) ?
clazz.getSuperclass() : clazz);
}