extract functional parameter: ensure final inside anonymous, no additional qualifier (IDEA-138895)

This commit is contained in:
Anna Kozlova
2015-04-08 12:06:00 +02:00
parent e1e48eb1e8
commit 45c5c2163f
5 changed files with 35 additions and 3 deletions
@@ -0,0 +1,10 @@
class Test {
void foo(final Runnable anObject) {
Runnable c = new Runnable() {
@Override
public void run() {
anObject.run();
}
};
}
}
@@ -0,0 +1,10 @@
class Test {
void foo() {
Runnable c = new Runnable() {
@Override
public void run() {
<selection>System.out.println();</selection>
}
};
}
}