Skip to content

Commit

Permalink
fix modules iterator error, for issue #2358
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Mar 21, 2024
1 parent cf53480 commit f448394
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,13 +666,15 @@ public List<ObjectReaderModule> getModules() {
}

public void getBeanInfo(BeanInfo beanInfo, Class objectClass) {
for (ObjectReaderModule module : modules) {
for (int i = 0; i < modules.size(); i++) {
ObjectReaderModule module = modules.get(i);
module.getBeanInfo(beanInfo, objectClass);
}
}

public void getFieldInfo(FieldInfo fieldInfo, Class objectClass, Field field) {
for (ObjectReaderModule module : modules) {
for (int i = 0; i < modules.size(); i++) {
ObjectReaderModule module = modules.get(i);
module.getFieldInfo(fieldInfo, objectClass, field);
}
}
Expand Down

0 comments on commit f448394

Please sign in to comment.