How to suppress Java warnings for specific directories or files such as generated code

后端 未结 13 1598
太阳男子
太阳男子 2020-12-02 07:13

I\'m using a parser generator that creates somewhat ugly code. As a result my Eclipse project has several dozen warnings emanating from generated source files. I know I can

13条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 07:30

    I think the best you can do is enable project specific settings for displaying warnings.

    Window -> Preferences -> Java -> Compiler -> Errors/Warnings

    On the top of the form is a link for configuring project specific settings.

提交回复
热议问题