Skip to content

ErrorProne flags Subscribe annotated methods as UnusedMethod #6281

@bright-tools

Description

@bright-tools

We've found that ErrorProne flags all @Subscribe annotated methods with an UnusedMethod warning

ErrorProne has a Keep annotation which could be applied to the Subscribe annotation in order to avoid this.

The alternatives seem to be suppressing the warning for each method or adding the subscribe annotation to a growing exemption list.

Would you be open to a PR to annotate Subscribe with @keep?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions