mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
inline: insert sync on class object when static sync method is inlined (IDEA-65449)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
public class TestIntelliJ
|
||||
{
|
||||
|
||||
public synchronized void foo() {
|
||||
System.out.println("foo");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
TestIntelliJ test = new TestIntelliJ();
|
||||
test.foo();
|
||||
synchronized (TestIntelliJ.class) {
|
||||
System.out.println("fooStatic");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user