Update Mapping.java

This commit is contained in:
Zoë Gidiere 2025-03-06 21:45:23 +00:00 committed by GitHub
parent 1b15694878
commit 18cb08b622
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,8 @@ import java.util.TreeMap;
/** /**
* @author daoge_cmd | IWareQ * @author daoge_cmd
* @author IWareQ
*/ */
public final class Mapping { public final class Mapping {
private static final Gson GSON = new GsonBuilder() private static final Gson GSON = new GsonBuilder()
@ -245,11 +246,7 @@ public final class Mapping {
} }
/** // see https://stackoverflow.com/questions/59655279/is-there-an-easy-way-to-make-gson-skip-a-field-if-theres-an-error-deserializing
* @see <a
* href="https://stackoverflow.com/questions/59655279/is-there-an-easy-way-to-make-gson-skip-a-field-if-theres-an-error
* -deserializing">IgnoreFailureTypeAdapterFactory</a>
*/
public static class IgnoreFailureTypeAdapterFactory implements TypeAdapterFactory { public static class IgnoreFailureTypeAdapterFactory implements TypeAdapterFactory {
@Override @Override
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) {