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

后端 未结 4 551
挽巷
挽巷 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:18

    First, go to the Preferences window. If you're running Windows or Linux, it'll be under the 'Window' menu, if you're using Mac OSX it'll be under the 'Eclipse' menu. Then go to Java -> Compiler -> Errors / Warnings -> Generic Types and you'll see three options for compiler warnings / errors on unchecked types and operations. Chang them from error or warning to ignore.

提交回复
热议问题