This commit is contained in:
Looly
2022-08-30 23:21:55 +08:00
parent c028a58a38
commit 41e9626692
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ public class Issue2572Test {
months.add(Month.DECEMBER);
final JSONObject obj = new JSONObject();
obj.set("months", months);
Assert.assertEquals("{\"months\":[\"DECEMBER\"]}", obj.toString());
Assert.assertEquals("{\"months\":[12]}", obj.toString());
final Map<String, Set<Month>> monthDays1 = obj.toBean(new TypeReference<Map<String, Set<Month>>>() {
});