How do I address unchecked cast warnings?

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

    In Eclipse Preferences, Go to Java->Compiler->Errors/Warnings->Generic types and check the Ignore unavoidable generic type problems check-box.

    This satisfies the intent of the question, i.e.

    I'd like to avoid Eclipse warnings...

    if not the spirit.

提交回复
热议问题