This commit is contained in:
@@ -185,8 +185,7 @@ public interface Attribute<T, F> {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据一个getter和setter方法生成 Attribute 对象。
|
||||
* tgetter、setter不能同时为null
|
||||
* 根据一个getter和setter方法生成 Attribute 对象。 tgetter、setter不能同时为null
|
||||
*
|
||||
* @param <T> 依附类的类型
|
||||
* @param <F> 字段类型
|
||||
@@ -200,8 +199,7 @@ public interface Attribute<T, F> {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据Class、getter和setter方法生成 Attribute 对象。
|
||||
* tgetter、setter不能同时为null
|
||||
* 根据Class、getter和setter方法生成 Attribute 对象。 tgetter、setter不能同时为null
|
||||
*
|
||||
* @param <T> 依附类的类型
|
||||
* @param <F> 字段类型
|
||||
@@ -237,7 +235,7 @@ public interface Attribute<T, F> {
|
||||
String prefix = t == boolean.class || t == Boolean.class ? "is" : "get";
|
||||
java.lang.reflect.Method getter = null;
|
||||
try {
|
||||
clazz.getMethod(setter.getName().replaceFirst("set", prefix));
|
||||
getter = clazz.getMethod(setter.getName().replaceFirst("set", prefix));
|
||||
} catch (Exception e) {
|
||||
continue;
|
||||
}
|
||||
@@ -295,8 +293,7 @@ public interface Attribute<T, F> {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据Class、字段别名、getter和setter方法生成 Attribute 对象。
|
||||
* tgetter、setter不能同时为null
|
||||
* 根据Class、字段别名、getter和setter方法生成 Attribute 对象。 tgetter、setter不能同时为null
|
||||
*
|
||||
* @param <T> 依附类的类型
|
||||
* @param <F> 字段类型
|
||||
@@ -311,8 +308,7 @@ public interface Attribute<T, F> {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据Class、字段别名、Field、getter和setter方法生成 Attribute 对象。
|
||||
* Field、tgetter、setter不能同时为null
|
||||
* 根据Class、字段别名、Field、getter和setter方法生成 Attribute 对象。 Field、tgetter、setter不能同时为null
|
||||
*
|
||||
* @param <T> 依附类的类型
|
||||
* @param <F> 字段类型
|
||||
|
||||
Reference in New Issue
Block a user