mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
redundant throws inspection:
1. global and local inspections are merged to one 2. local inspection reports "non-final" methods (if cheap enough) IDEA-177230
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "true"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'java.io.IOException' to 'a.f' throws list" "true"
|
||||
// "Add 'IOException' to 'a.f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "true"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
void f() throws IOException {
|
||||
}
|
||||
}
|
||||
|
||||
class b extends a {
|
||||
void f() {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "true"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "true"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'java.io.IOException' to 'a.f' throws list" "true"
|
||||
// "Add 'IOException' to 'a.f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "true"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "false"
|
||||
// "Remove 'IOException' from 'f' throws list" "false"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "false"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove 'IOException' from 'f' throws list" "false"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
void f() throws <caret>IOException {
|
||||
}
|
||||
}
|
||||
|
||||
class b extends a {
|
||||
void f() throws IOException {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'java.io.IOException' from 'f' throws list" "true"
|
||||
// "Remove 'IOException' from 'f' throws list" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Suppress for method" "true"
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
class Main {
|
||||
@SuppressWarnings("RedundantThrowsDeclaration")
|
||||
public void test() throws Exception, FileNotFoundException, IOException {}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Suppress for method" "false"
|
||||
// "Suppress for method" "true"
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user