mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
20 lines
701 B
Java
20 lines
701 B
Java
// sync statement
|
|
|
|
class a {
|
|
void f() {
|
|
|
|
synchronized (<error descr="Incompatible types. Found: 'null', required: 'java.lang.Object'">null</error>) {
|
|
}
|
|
synchronized (<error descr="Incompatible types. Found: 'int', required: 'java.lang.Object'">0</error>) {
|
|
}
|
|
synchronized (<error descr="Incompatible types. Found: 'char', required: 'java.lang.Object'">'a'</error>) {
|
|
}
|
|
synchronized (<error descr="Incompatible types. Found: 'boolean', required: 'java.lang.Object'">true</error>) {
|
|
}
|
|
synchronized (<error descr="Incompatible types. Found: 'void', required: 'java.lang.Object'">System.out.println()</error> ) {
|
|
}
|
|
|
|
|
|
}
|
|
|
|
} |