com.esotericsoftware.kryo.NotNull Maven / Gradle / Ivy
package com.esotericsoftware.kryo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.esotericsoftware.kryo.serializers.FieldSerializer;
/** Indicates a field can never be null when it is being serialized and deserialized. Some serializers use this to save space. Eg,
* {@link FieldSerializer} will save 1 byte.
* @author Nathan Sweet */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface NotNull {
}