egorand
08/09/2018, 8:16 PMclass Test {
fun test() {
synchronized(this) {
println("foo")
}
}
}
decompiles to this:
public final class Test {
public final void test() {
synchronized(this){}
try {
String var2 = "foo";
System.out.println(var2);
Unit var3 = Unit.INSTANCE;
} finally {
;
}
}
}
notice the empty synchronized
block