mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
extract functional parameter: ensure final inside anonymous, no additional qualifier (IDEA-138895)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo(final Runnable anObject) {
|
||||
Runnable c = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
anObject.run();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo() {
|
||||
Runnable c = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
<selection>System.out.println();</selection>
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -57,6 +57,10 @@ public class IntroduceFunctionalParameterTest extends LightRefactoringTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testInsideAnonymous() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
|
||||
Reference in New Issue
Block a user