How to add -Xlint:unchecked option or any javac option in Eclipse?

后端 未结 4 542
挽巷
挽巷 2021-01-25 16:48

How can i to add -Xlint:unchecked option or any javac option in Eclipse? this is strange there is no obvious way to do that in eclipse.

Thanks in advance

4条回答
  •  一生所求
    2021-01-25 17:12

    If you are doing builds with ant in Eclipse (as I was today), then it's really not a setting in Eclipse but an additional setting/flag(?) on the javac task.

    Found via Darins' helpful hint here:

    Specifically compilerarg nested element.

    Here's how to add it, found on the Apache javac task page

    
       
     
    

    Hope this helps someone else, as I didn't quite get it at first myself.

提交回复
热议问题