Duplicate throws
Reports duplicate exceptions in a method throws
list.
Example:
void f() throws Exception, Exception {}
After the quick-fix is applied:
void f() throws Exception {}
Use the Ignore exceptions subclassing others option to ignore exceptions subclassing other exceptions.
Inspection options
Option | Type | Default |
---|---|---|
Ignore exceptions subclassing others | Checkbox | false |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023