Files
openide/java/java-tests/testData/refactoring/extractMethodAndDuplicatesInplace/MakeStaticFailsWithClassUsage.java
Alexandr Suhinin 7a80c0d0ed [extract method] IDEA-313673: don't suggest to make method static if there is a non-static class usage
GitOrigin-RevId: 5b2c6e7a16b730c1fc563b295509e1439b03fc97
2023-03-01 18:25:19 +00:00

14 lines
258 B
Java

class X {
void test() {
<selection>Runnable r = new Runnable() {
@Override
public void run() {
System.out.println(new Y());
}
};</selection>
r.run();
}
class Y {
}
}