【8.3.0】【rule】类型获取增加为空的情况

master
stylefeng 2024-09-06 23:19:25 +08:00
parent 3fe8b20534
commit 60f1fbb740
2 changed files with 8 additions and 0 deletions

View File

@ -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) {

View File

@ -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) {