Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/methodThrows/afterRemoveSpecific.java
Nikita Eshkeev 82099584a0 [codeInsight] IDEA-201714 Missing "fix all" for "Redundant throws clause"
This patch fixes the notes from the code review it includes:

- splitting the code that detects related @throws in the local inspection from the code that is used in the global one
- related @throws are no longer returned if one of the duplicates in the throws list is being removed
- related @throw tags are not being removed if there is an element in the throws list that can be assigned with the class of the @throws tag

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: e68823093d88427dbbb7efa0cd1171988d1f5360
2020-07-21 22:58:57 +00:00

16 lines
373 B
Java

// "Remove 'IOException' from 'f' throws list" "true"
import java.io.FileNotFoundException;
import java.io.IOException;
class A {
/**
* @since 2020.3
* @author me
* @throws Exception first exception
* @throws Exception second exception
* @throws FileNotFoundException file not found
*/
void f() throws /* 1 */ Exception /* 2 */ /* 3 */ /* 4 */ {}
}