Remove v0 gson api
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
d388ca8052
commit
15c9bb4070
|
@ -1,30 +0,0 @@
|
|||
package io.gitlab.jfronny.commons.serialize.gson.api;
|
||||
|
||||
import io.gitlab.jfronny.commons.serialize.gson.api.v1.GsonHolders;
|
||||
import io.gitlab.jfronny.gson.*;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@Deprecated
|
||||
public class GsonHolder {
|
||||
public static Gson getGson() {
|
||||
return GsonHolders.API.getGson();
|
||||
}
|
||||
|
||||
public static void registerTypeAdapter(Type type, Object typeAdapter) {
|
||||
GsonHolders.registerTypeAdapter(type, typeAdapter);
|
||||
}
|
||||
|
||||
public static void registerTypeAdapterFactory(TypeAdapterFactory factory) {
|
||||
GsonHolders.registerTypeAdapterFactory(factory);
|
||||
}
|
||||
|
||||
public static void modifyBuilder(Consumer<GsonBuilder> func) {
|
||||
GsonHolders.modifyBuilder(func);
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
GsonHolders.registerSerializer();
|
||||
}
|
||||
}
|
|
@ -1,15 +1,12 @@
|
|||
package io.gitlab.jfronny.commons.serialize.gson.api;
|
||||
package io.gitlab.jfronny.commons.serialize.gson.api.v1;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* Mark a class/field to be ignored by Gson.
|
||||
* May be used for metadata in serialized classes
|
||||
*
|
||||
* @deprecated Use {@code transient} for fields instead
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.FIELD, ElementType.TYPE})
|
||||
@Deprecated
|
||||
public @interface Ignore {
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
package io.gitlab.jfronny.commons.serialize.gson.impl;
|
||||
|
||||
import io.gitlab.jfronny.commons.serialize.gson.api.*;
|
||||
import io.gitlab.jfronny.commons.serialize.gson.api.v1.Ignore;
|
||||
import io.gitlab.jfronny.gson.*;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,7 @@ package io.gitlab.jfronny.commons.test;
|
|||
|
||||
import io.gitlab.jfronny.commons.ComparableVersion;
|
||||
import io.gitlab.jfronny.commons.serialize.Serializer;
|
||||
import io.gitlab.jfronny.commons.serialize.gson.api.Ignore;
|
||||
import io.gitlab.jfronny.commons.serialize.gson.api.v1.Ignore;
|
||||
import io.gitlab.jfronny.commons.serialize.gson.api.v1.GsonHolders;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
|
Loading…
Reference in New Issue