mirror of https://gitee.com/stylefeng/roses
【8.3.0】【rule】类型获取增加为空的情况
parent
3fe8b20534
commit
60f1fbb740
|
@ -29,6 +29,10 @@ public class ClassTypeUtil {
|
|||
*/
|
||||
public static ClassParseResult getClassFieldType(Type type) {
|
||||
|
||||
if(type == null){
|
||||
return new ClassParseResult(FieldTypeEnum.OTHER, null);
|
||||
}
|
||||
|
||||
// 如果是具体类,不带泛型
|
||||
if (type instanceof Class) {
|
||||
|
||||
|
|
|
@ -81,6 +81,10 @@ public class AdvancedClassTypeUtil {
|
|||
*/
|
||||
public static ClassParseResult getClassFieldType(Type type) {
|
||||
|
||||
if(type == null){
|
||||
return new ClassParseResult(FieldTypeEnum.OTHER, null);
|
||||
}
|
||||
|
||||
// 如果是具体类,不带泛型
|
||||
if (type instanceof Class) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue