-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e33f24
commit 34e308f
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,8 +159,11 @@ private T deserializeContents(JsonParser p, DeserializationContext ctxt) | |
|
||
JsonToken currToken = p.currentToken(); | ||
if (currToken != JsonToken.FIELD_NAME) { | ||
expect(p, JsonToken.START_OBJECT); | ||
currToken = p.nextToken(); | ||
// 01-Mar-2023, tatu: [datatypes-collections#104] Handle empty Maps too | ||
if (currToken != JsonToken.END_OBJECT) { | ||
expect(p, JsonToken.START_OBJECT); | ||
currToken = p.nextToken(); | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cowtowncoder
Author
Member
|
||
} | ||
|
||
for (; currToken == JsonToken.FIELD_NAME; currToken = p.nextToken()) { | ||
|
3 changes: 1 addition & 2 deletions
3
...tatype/guava/failing/MultiMap104Test.java → ...ckson/datatype/guava/MultiMap104Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when the currToken==JsonToken.END_OBJECT, do we need to consume it too(by calling p.nextToken())? or maybe there another exception late when deserialize the properties after this multimap in the outside object? just a little confusion...