Update gson/src/main/java/com/google/gson/GsonBuilder.java

Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
This commit is contained in:
tiegen 2021-04-26 10:36:02 +08:00 committed by GitHub
parent e6b7da988a
commit 527c6cf0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ public final class GsonBuilder {
/**
* Configures Gson to deserialize duplicate map keys. Only the value of last entry with the same key will be used, previous values
* will be discarded. By default, Gson throws a {@link JsonSyntaxException} when a key occurs more than once.
* will be discarded. By default, Gson throws a {@link JsonSyntaxException} when a key occurs more than once.
*
* <p>Note that enabling support for duplicate maps keys is discouraged because it can make an application less secure.
* When an application interacts with other components using different JSON libraries, they might treat duplicate keys