How do I address unchecked cast warnings?

后端 未结 23 1800
醉梦人生
醉梦人生 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:58

    Solution: Disable this warning in Eclipse. Don't @SuppressWarnings it, just disable it completely.

    Several of the "solutions" presented above are way out of line, making code unreadable for the sake of suppressing a silly warning.

提交回复
热议问题