Files
openide/java/java-tests/testData/refactoring/convertToInstance8Method/ConvertToInstanceMethodOfTheSameClass.java.after
Bas Leijdekkers 610358505b Java: stable method ordering for "Convert to instance method" (IDEA-356128)
GitOrigin-RevId: 81b2e38494d7792dfe3ec13703851e4eb1539e71
2024-07-10 19:17:56 +00:00

26 lines
242 B
Plaintext

class Bar {
void foo() {
}
void m(){
foo();
}
{
Runnable r = this::foo;
}
static {
Runnable r = new Bar()::foo;
}
}
class Bar1 {
void m() {
new Bar().foo();
}
{
Runnable r = new Bar()::foo;
}
}