All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.segment.analytics.gson.AutoGson Maven / Gradle / Ivy

The newest version!
package com.segment.analytics.gson;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import com.google.auto.value.AutoValue;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 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 - 2024 Weber Informatics LLC | Privacy Policy