spirosoik
11/16/2017, 10:38 AMprivate final static String FOO
field in a class?
I see two options:
- companion object
with @JvmStatic
which in the bytecode generates a companion class with synthetic accessors and almost 60 lines of code just for this line
- const val FOO : String
out of the class at the top -> which creates a mini class which includes just some metadata, but as a code is really weird to have a variable out of the class which is used inside
In bytecode second case seems better.