-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
I am starting to run Checker Framework null analysis on https://github.com/census-instrumentation/opencensus-java. The Checker Framework requires equals to have a Nullable parameter (related to issue #73), so I tried using AutoValue.CopyAnnotations to copy the annotation from an abstract equals method to the generated subclass:
@Override
@AutoValue.CopyAnnotations
public abstract boolean equals(@Nullable Object other);CopyAnnotations had no effect on the generated equals method, so I instead tried putting a SuppressWarnings annotation on the whole method:
@Override
@SuppressWarnings("nullness")
@AutoValue.CopyAnnotations
public abstract boolean equals(Object other);That change also had no effect on the generated method. I expected CopyAnnotations to copy annotations for any method or method parameter, including methods from Object.
Metadata
Metadata
Assignees
Labels
No labels