Polishing

This commit is contained in:
Juergen Hoeller
2016-11-07 20:30:27 +01:00
parent 0b47c54cda
commit c2a1a41eb6
12 changed files with 186 additions and 179 deletions

View File

@@ -607,6 +607,7 @@ public abstract class ReflectionUtils {
* @see Class#getDeclaredMethods()
*/
private static Method[] getDeclaredMethods(Class<?> clazz) {
Assert.notNull(clazz, "Class must not be null");
Method[] result = declaredMethodsCache.get(clazz);
if (result == null) {
Method[] declaredMethods = clazz.getDeclaredMethods();
@@ -708,6 +709,7 @@ public abstract class ReflectionUtils {
* @see Class#getDeclaredFields()
*/
private static Field[] getDeclaredFields(Class<?> clazz) {
Assert.notNull(clazz, "Class must not be null");
Field[] result = declaredFieldsCache.get(clazz);
if (result == null) {
result = clazz.getDeclaredFields();