AutoValueBoxedValues
AutoValue instances should not usually contain boxed types that are not Nullable. We recommend removing the unnecessary boxing.

Severity
WARNING

The problem

AutoValue classes reject null values, unless the property is annotated with @Nullable. For this reason, the usage of boxed primitives (e.g. Long) is discouraged, except when annotated as @Nullable. Otherwise they can be replaced with the corresponding primitive. There could be some cases where the usage of a boxed primitive might be intentional to avoid boxing the value again after invoking the getter.

Suppression

Suppress violations by using @SuppressWarnings("AutoValueBoxedValues") on the relevant abstract getter and/or setter.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("AutoValueBoxedValues") to the enclosing element.