kingsley
08/10/2016, 9:41 PMprivate var mString: String? = null
private fun setup() {
synchronized(this) {
if (mString == null) {
mString = "New string"
}
}
}
But the decompiled code looks like
private String mString;
private final void setup() {
synchronized(this){}
try {
if(this.mString == null) {
this.mString = "New string";
}
Unit var3 = Unit.INSTANCE;
} finally {
;
}
}
I'm a bit confused as to why the block was moved out of the synchronized block. A bug maybe?