How can I suppress javac warnings about deprecated api?

前端 未结 9 1062
遥遥无期
遥遥无期 2020-12-09 01:40

When I compile, javac outputs:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.`
9条回答
  •  眼角桃花
    2020-12-09 02:09

    @SuppressWarnings("deprecation") is not working for me, instead I've used

    @SuppressWarnings("unchecked")
    

提交回复
热议问题