mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
Java: basic support for Valhalla Value Classes (IDEA-364548)
GitOrigin-RevId: 93b0394866aae35772ccc90e7de822af8a94c6ce
This commit is contained in:
committed by
intellij-monorepo-bot
parent
36b258bc98
commit
2b32d9bb56
@@ -6,9 +6,9 @@ class AC extends AbstractValueBased {
|
||||
{
|
||||
final AC localAc = new AC();
|
||||
|
||||
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">ac</warning>) {}
|
||||
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">objectAc</warning>) {}
|
||||
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">localAc</warning>) {}
|
||||
synchronized (<warning descr="Synchronization on instance of value-based class">ac</warning>) {}
|
||||
synchronized (<warning descr="Synchronization on instance of value-based class">objectAc</warning>) {}
|
||||
synchronized (<warning descr="Synchronization on instance of value-based class">localAc</warning>) {}
|
||||
synchronized (AC.class) {}
|
||||
|
||||
synchronized (new Object()) {}
|
||||
@@ -18,7 +18,7 @@ class AC extends AbstractValueBased {
|
||||
}
|
||||
|
||||
void f(AC ac) {
|
||||
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">ac</warning>) {}
|
||||
synchronized (<warning descr="Synchronization on instance of value-based class">ac</warning>) {}
|
||||
}
|
||||
|
||||
void g(Object ac) {
|
||||
|
||||
Reference in New Issue
Block a user