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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions