mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-66266 (add/remove modifier quick fix to work on explicit ones only)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Make 'e' not final" "false"
|
||||
|
||||
class C {
|
||||
static {
|
||||
try {
|
||||
throw new Exception();
|
||||
}
|
||||
catch (RuntimeException | IOException e) {
|
||||
<caret>e = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Make 'r' not final" "false"
|
||||
|
||||
class C {
|
||||
void m() throws Exception {
|
||||
try (AutoCloseable r = null) {
|
||||
<caret>r = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "Make 'e' final" "false"
|
||||
|
||||
class C {
|
||||
static {
|
||||
try {
|
||||
throw new Exception();
|
||||
}
|
||||
catch (RuntimeException | IOException e) {
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
System.out.println(<caret>e);
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Make 'r' final" "false"
|
||||
|
||||
class C {
|
||||
void m() throws Exception {
|
||||
try (AutoCloseable r = null) {
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
System.out.println(<caret>r);
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user