增加Record支持(pr#4096@Github)

This commit is contained in:
Looly
2025-10-10 22:12:49 +08:00
parent a166a731db
commit 96a75cd2e4
2 changed files with 3 additions and 2 deletions
@@ -109,12 +109,12 @@ public class ObjectMapper {
} else if (source instanceof ResourceBundle) {
// JSONTokener
mapFromResourceBundle((ResourceBundle) source, jsonObject, filter);
} else if (RecordUtil.isRecord(source.getClass())) {
mapFromBean(source, jsonObject);
} else if (BeanUtil.isReadableBean(source.getClass())) {
// 普通Bean
// TODO 过滤器对Bean无效,需补充。
mapFromBean(source, jsonObject);
} else if (RecordUtil.isRecord(source.getClass())) {
mapFromBean(source, jsonObject);
}
// 跳过空对象