mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
resolve conflicting names when rename to 'ignored' (IDEA-184092)
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
class Test23 {
|
||||
void m() throws Exception {
|
||||
try (FooContext fo<caret>o = new FooContext()) {
|
||||
try (BarContext ignored = new BarContext()) {
|
||||
fooBar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void fooBar() {
|
||||
|
||||
}
|
||||
|
||||
private class FooContext implements AutoCloseable {
|
||||
@Override
|
||||
public void close() throws Exception {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private class BarContext implements AutoCloseable{
|
||||
@Override
|
||||
public void close() throws Exception {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
class Test23 {
|
||||
void m() throws Exception {
|
||||
try (FooContext ig<caret>nored1 = new FooContext()) {
|
||||
try (BarContext ignored = new BarContext()) {
|
||||
fooBar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void fooBar() {
|
||||
|
||||
}
|
||||
|
||||
private class FooContext implements AutoCloseable {
|
||||
@Override
|
||||
public void close() throws Exception {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private class BarContext implements AutoCloseable{
|
||||
@Override
|
||||
public void close() throws Exception {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user