Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

set 中存在 null 值导致序列化丢失分隔符 #4384

Open
cloudswindow opened this issue May 6, 2023 · 0 comments
Open

set 中存在 null 值导致序列化丢失分隔符 #4384

cloudswindow opened this issue May 6, 2023 · 0 comments

Comments

@cloudswindow
Copy link

Set<Long> a = new HashSet<>(); a.add(null); a.add(666L); log.info( JSON.toJSONString(a));
输出:[null666]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant