最近刚刚切换到了IDEA,在使用的过程中,发现很多的public方法都显示警告信息:Method 'xxx' is never used(xxx方法从未被使用),很影响观感。

在Settings中找到如下内容,Editor-Inspections-Java-Declaration redundancy,点击Unused declaration,在右下角找到如下内容,将Methods的级别根据自己的喜好修改即可。

去掉IDEA中public方法显示Method xxx() is never used警告的方法

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-07-19
  • 2021-11-25
猜你喜欢
  • 2021-08-13
  • 2022-01-30
  • 2021-06-19
  • 2021-04-08
  • 2021-05-18
  • 2021-12-26
  • 2021-09-19
相关资源
相似解决方案