File -> Settings… –> 搜索框输入 “inspection”回车 –> 右边搜索框输入 “Declaration redundancy”,找到 “Unused declaration”,取消勾选即可,如下图:
IDEA在类名和方法名出现“xxx is never used”的解决方法
最新推荐文章于 2024-03-09 21:45:39 发布
File -> Settings… –> 搜索框输入 “inspection”回车 –> 右边搜索框输入 “Declaration redundancy”,找到 “Unused declaration”,取消勾选即可,如下图: