|
@@ -63,9 +63,9 @@ public class ReflectionKit {
|
|
|
Method method = cls.getMethod(getMethodCapitalize(str));
|
|
|
obj = method.invoke(entity);
|
|
|
} catch (NoSuchMethodException e) {
|
|
|
- logger.warning(String.format("Warn: No such method. in %s. Cause:" + e, cls.getSimpleName()));
|
|
|
+ logger.warning(String.format("Warn: No such method. in %s. Cause:", cls.getSimpleName()) + e);
|
|
|
} catch (IllegalAccessException e) {
|
|
|
- logger.warning(String.format("Warn: Cannot execute a private method. in %s. Cause:" + e, cls.getSimpleName()));
|
|
|
+ logger.warning(String.format("Warn: Cannot execute a private method. in %s. Cause:", cls.getSimpleName()) + e);
|
|
|
} catch (InvocationTargetException e) {
|
|
|
logger.warning("Warn: Unexpected exception on getMethodValue. Cause:" + e);
|
|
|
}
|
|
@@ -119,7 +119,7 @@ public class ReflectionKit {
|
|
|
|
|
|
/**
|
|
|
* 反射对象获取泛型
|
|
|
- *
|
|
|
+ *
|
|
|
* @param clazz
|
|
|
* 对象
|
|
|
* @param index
|
|
@@ -138,8 +138,8 @@ public class ReflectionKit {
|
|
|
Type[] params = ((ParameterizedType) genType).getActualTypeArguments();
|
|
|
|
|
|
if (index >= params.length || index < 0) {
|
|
|
- logger.warning(String.format("Warn: Index: %s, Size of %s's Parameterized Type: %s .", index,
|
|
|
- clazz.getSimpleName(), params.length));
|
|
|
+ logger.warning(String.format("Warn: Index: %s, Size of %s's Parameterized Type: %s .", index, clazz.getSimpleName(),
|
|
|
+ params.length));
|
|
|
return Object.class;
|
|
|
}
|
|
|
if (!(params[index] instanceof Class)) {
|