``` object MyObj { const val MESSAGE = "msg" }...
# random
g
Copy code
object MyObj {
    const val MESSAGE = "msg"
}
Getting the bytecode and decompiling, it translates into
Copy code
// Simplified
public final class MyObj {
   @NotNull
   public static final String MESSAGE = "msg";
   public static final MyObj INSTANCE;

   static {
      INSTANCE = new MyObj();
   }
}
g
Never believe to java code decompiled from bytecode, especially generated not by java
g
Today I learned...