fix: Reflection missing fields (#590)

pull/592/head
BigXin0109 2 years ago committed by GitHub
parent 54fb0762c7
commit 8d1e6c21bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,9 +94,7 @@ public class ReflectUtil {
} else { } else {
int length = allFields.length; int length = allFields.length;
allFields = Arrays.copyOf(allFields, length + declaredFields.length); allFields = Arrays.copyOf(allFields, length + declaredFields.length);
for (int i = 1; i < declaredFields.length; i++) { System.arraycopy(declaredFields, 0, allFields, length, declaredFields.length);
allFields[length + i] = declaredFields[i - 1];
}
} }
searchType = withSuperClassFields ? searchType.getSuperclass() : null; searchType = withSuperClassFields ? searchType.getSuperclass() : null;
} }

Loading…
Cancel
Save