Skip to content

Cannot suppress AddNullMarkedToClass, AddNullMarkedToPackageInfo #5562

Description

@commonquail

In Error Prone 2.45.0 through 2.48.0 the following suppressions have no effect:

@SuppressWarnings("AddNullMarkedToPackageInfo")
package foo;
@SuppressWarnings("AddNullMarkedToClass")
public class Foo {}

Other known-good suppressions work as usual, including VoidMissingNullable whether on method or class level. I assume, but did not verify, that the former has never worked.

If this curiosity is fine then documentation should probably suppress the suppression section. I only discovered this because I was constructing a synthetic example to check nullness analysis configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions