Ignore static fields in wrapper class for AutoWrapper (#2401)
This commit is contained in:
parent
a6903c2bb0
commit
339b2ef923
|
@ -151,6 +151,7 @@ public class AutoWrapper<T> implements EquivalentConverter<T> {
|
|||
if (wrapperAccessors == null) {
|
||||
wrapperAccessors = Arrays
|
||||
.stream(wrapperClass.getDeclaredFields())
|
||||
.filter(field -> !Modifier.isStatic(field.getModifiers()))
|
||||
.map(Accessors::getFieldAccessor)
|
||||
.toArray(FieldAccessor[]::new);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue