com.segment.analytics.gson.AutoGson Maven / Gradle / Ivy
package com.segment.analytics.gson;
import com.google.auto.value.AutoValue;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Marks an {@link AutoValue @AutoValue}-annotated type for proper Gson serialization.
*
* This annotation is needed because the {@linkplain Retention retention} of {@code @AutoValue}
* does not allow reflection at runtime.
*/
@Target(TYPE) @Retention(RUNTIME) public @interface AutoGson {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy