Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -352,9 +352,9 @@ public abstract class ClassUtils {
|
||||
*/
|
||||
public static Class<?> getUserClass(Class<?> clazz) {
|
||||
if (clazz != null && clazz.getName().contains(CGLIB_CLASS_SEPARATOR)) {
|
||||
Class<?> superClass = clazz.getSuperclass();
|
||||
if (superClass != null && !Object.class.equals(superClass)) {
|
||||
return superClass;
|
||||
Class<?> superclass = clazz.getSuperclass();
|
||||
if (superclass != null && !Object.class.equals(superclass)) {
|
||||
return superclass;
|
||||
}
|
||||
}
|
||||
return clazz;
|
||||
@@ -821,8 +821,8 @@ public abstract class ClassUtils {
|
||||
|
||||
/**
|
||||
* Return a public static method of a class.
|
||||
* @param methodName the static method name
|
||||
* @param clazz the class which defines the method
|
||||
* @param methodName the static method name
|
||||
* @param args the parameter types to the method
|
||||
* @return the static method, or {@code null} if no static method was found
|
||||
* @throws IllegalArgumentException if the method name is blank or the clazz is null
|
||||
|
||||
Reference in New Issue
Block a user