mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
40 lines
833 B
Plaintext
40 lines
833 B
Plaintext
public class IDEA17606 {
|
|
|
|
public void foo() {
|
|
// try to inline 'preferences'
|
|
final Bar bar = new Bar(Preferences.getInstance().getComponent());
|
|
bar.toString();
|
|
|
|
ThreadUtils.run(new Runnable() {
|
|
public void run() {
|
|
final Foo foo = new Foo();
|
|
foo.setSize(Preferences.getInstance().getDimension().getSize());
|
|
}
|
|
});
|
|
}
|
|
|
|
class Preferences {
|
|
public static Preferences getInstance() {
|
|
return new Preferences();
|
|
}
|
|
|
|
public JComponent getComponent() {
|
|
return null;
|
|
}
|
|
|
|
public Dimension getDimension() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class Bar {
|
|
public Bar(JComponent component) {
|
|
}
|
|
}
|
|
|
|
class ThreadUtils {
|
|
public static void run(Runnable runnable) {
|
|
}
|
|
}
|
|
}
|