i have strange problem in android and kotlin.
the problem is i define variable with ArrayList<Long>
type but in runtime change to ArrayList<Double>
i define my variable like this:
private var mDivideEntityValue: ArrayList<Long> = arrayListOf()
and use Gson library to assign value like:
// mDivideEntity is string variable store in json array like: ["150","30"]
mDivideEntityValue = Gson().fromJson(mDivideEntity.amounts, ArrayList<Long>()::class.java)
after assign ArrayList<Long>
change to ArrayList<Double>
is this kotlin bug? or i miss something?
i use kotlin 1.3.71 and jvm 1.8.
update 0: