Skip to content

Commit

Permalink
modify mistake error key
Browse files Browse the repository at this point in the history
  • Loading branch information
gongxuanzhang committed May 12, 2023
1 parent ef47d3e commit 7841d72
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,11 @@ private static FieldCache doDeclaredFields(Class<?> clazz, ConfigurationHolder c

// The current field needs to be ignored
if (writeHolder.ignore(field.getFieldName(), entry.getKey())) {
if (ignoreSet != null) {
ignoreSet.add(field.getFieldName());
}
ignoreSet.add(field.getFieldName());
indexFieldMap.remove(index);
} else {
// Mandatory sorted fields
if (ignoreSet.contains(key)) {
if (indexFieldMap.containsKey(key)) {
tempSortedFieldMapp.put(key, field);
} else {
// Need to reorder automatically
Expand Down

0 comments on commit 7841d72

Please sign in to comment.