Polishing

This commit is contained in:
Sam Brannen
2025-01-03 17:23:07 +02:00
parent c59ca087b4
commit 2ba0022704
6 changed files with 28 additions and 45 deletions

View File

@@ -719,8 +719,7 @@ public abstract class ReflectionUtils {
// Keep backing up the inheritance hierarchy.
Class<?> targetClass = clazz;
do {
Field[] fields = getDeclaredFields(targetClass);
for (Field field : fields) {
for (Field field : getDeclaredFields(targetClass)) {
if (ff != null && !ff.matches(field)) {
continue;
}