How do I address unchecked cast warnings?

后端 未结 23 1207
醉梦人生
醉梦人生 2020-11-22 03:06

Eclipse is giving me a warning of the following form:

Type safety: Unchecked cast from Object to HashMap

This is from a call to

23条回答
  •  死守一世寂寞
    2020-11-22 03:43

    In Android Studio if you want to disable inspection you can use:

    //noinspection unchecked
    Map myMap = (Map) deserializeMap();
    

提交回复
热议问题