mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 03:13:51 +00:00
fix[protocol]: 修复代码无法注解父类属性问题
This commit is contained in:
1 parent
f456c0c2e9
commit
94ae7b0f33
1 file changed
+1
-1
@@ -64,7 +64,7 @@ public abstract class ReflectionUtils {
|
||||
// Keep backing up the inheritance hierarchy.
|
||||
Class<?> targetClass = clazz;
|
||||
do {
|
||||
var fields = clazz.getDeclaredFields();
|
||||
var fields = targetClass.getDeclaredFields();
|
||||
for (var field : fields) {
|
||||
ReflectionUtils.filterField(field, fieldFilter, fieldCallback);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user