I have something like this: ``` private var mStrin...
# random
k
I have something like this:
Copy code
private var mString: String? = null

    private fun setup() {
        synchronized(this) {
            if (mString == null) {
                mString = "New string"
            }
        }
    }
But the decompiled code looks like
Copy code
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?