Skip to content

Check: Immutable Exceptions

Madeline Kahn edited this page Apr 1, 2024 · 1 revision
  • Name: "immutableExceptions"
  • Default: Enabled

Description

Generates a warning if an exception class has any non-final field(s).

A class is assumed to be an exception class if its name ends with "Exception" or "Error". (The exact regex used is (?:Exception|Error)$.)