Fixed bug where jacoco fields where read by ClassUtil
This commit is contained in:
parent
bf34f79d19
commit
4c0cf90344
1 changed files with 5 additions and 1 deletions
|
|
@ -239,7 +239,11 @@ public class ClassUtil {
|
|||
List<Field> fields = new ArrayList<>();
|
||||
|
||||
for (Class<?> currentClass = clazz; currentClass != upToClass; currentClass = currentClass.getSuperclass()) {
|
||||
Collections.addAll(fields, currentClass.getDeclaredFields());
|
||||
for (Field field : currentClass.getDeclaredFields()) {
|
||||
if (!field.isSynthetic()) {
|
||||
fields.add(field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return fields;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue