不显示未使用的Getters/Setter的警告

Arn*_*lle 21 java intellij-idea

从不使用方法时,IntelliJ会显示警告 Method xxx() is never used

但对于POJO,我为每个属性创建Getters/Setter,我不希望IntelliJ警告我未使用的Getters/Setter.

有没有办法自动抑制这些警告?

Ter*_*ekC 9

自IDEA 2016.3以来,现在有了这样的设置.在Mac上使用IntelliJ,它位于Settings| Editor| Inspections| Java| Declaration redundancy| Unused Declarations| Methods|Getters/setters

禁用未使用的getter/setter方法警告