Skip to content

Should we enable the check CheckedExceptionNotThrown in error prone? #16545

Description

@iverase

This check prevents methods that do not throw a specific exception to declare they do. I think this would be beneficial for Lucene as many method implementation declare they throw IOExceptions when they do not perform any IO making consumer of those methods to have to handle this exceptions when they shouldn't.

Change is trivial but it touches many files.

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