IDE incorrectly showing classes and methods as unused
已回答
I have just updated from version 2017.2.x to 2017.3.4 and in one of my Java projects it now shows many classes, enums and methods incorrectly as unused.
AFAIK it only happens in this one (big) Java project. I have tried restarting the IDE, snychronize, mvn clean & install but the problem doesn't seem to go away.
A manuall Analyze -> Inspect Code also shows those declarations incorrectly as unused.
Pretty much every public method and every enum is being shown as unused.
Any suggestions on what I can do to fix this problem?
请先登录再写评论。
Please try File | Invalidate Caches | Invalidate and Restart.
If the issue remains, please provide a sample project illustrating the problem and the exact steps to reproduce.
Thanks Serge Baranov, that fixed my issue.