mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
inline method: do not check for inaccessibility if referenced member would be also inlined (IDEA-78941 )
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
public class Foo {
|
||||
public static void f<caret>oo() {
|
||||
bar(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doRun();
|
||||
}
|
||||
|
||||
private void doRun() {
|
||||
// Woo-hoo
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void bar(final Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
public static void main(String[] args) {
|
||||
Foo.foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
public class Foo {
|
||||
|
||||
public static void bar(final Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
public static void main(String[] args) {
|
||||
Foo.bar(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doRun();
|
||||
}
|
||||
|
||||
private void doRun() {
|
||||
// Woo-hoo
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user