ExtendsAutoValue
Do not extend an @AutoValue/@AutoOneOf class in non-generated code.

Severity
ERROR

The problem

@AutoValue classes are intended to be closed, with a single implementation with known semantics. Implementing them by hand is extremely dangerous.

Here are some common cases where we have seen code that extends @AutoValue classes and recommendations for what to do instead:

Suppression

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