mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-28 03:19:14 +00:00
refactor(core): 优化反射工具类异常处理
This commit is contained in:
@@ -493,7 +493,7 @@ public class ReflectionUtils {
|
||||
try {
|
||||
return LOOKUP.unreflectGetter(field);
|
||||
} catch (IllegalAccessException ex) {
|
||||
return null;
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -533,7 +533,7 @@ public class ReflectionUtils {
|
||||
try {
|
||||
return LOOKUP.unreflectSetter(field);
|
||||
} catch (IllegalAccessException ex) {
|
||||
return null;
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user