java - References to generic type SparseArray<E> should be parameterized -
i tried googling warning , seem find others seems bit off.
type safety: method put(int, object) belongs raw type sparsearray. references generic type sparsearray should parameterized
can explain me warning?
sparsearray
works java generics. ideally, should declaring sparsearray<whateveryourvalueclassis>
, storing instances of whateveryourvalueclassis
via put()
.