We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e7885 commit aebecb3Copy full SHA for aebecb3
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
@@ -73,8 +73,7 @@ public static List<Field> getAllFieldsList(final Class<?> cls) {
73
final List<Field> allFields = new ArrayList<>();
74
Class<?> currentClass = cls;
75
while (currentClass != null) {
76
- final Field[] declaredFields = currentClass.getDeclaredFields();
77
- Collections.addAll(allFields, declaredFields);
+ Collections.addAll(allFields, currentClass.getDeclaredFields());
78
currentClass = currentClass.getSuperclass();
79
}
80
return allFields;
0 commit comments