mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-01 15:37:24 +00:00
Update Mapping.java
This commit is contained in:
parent
1b15694878
commit
18cb08b622
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user