Unused declarations and entry points
Hi,
I'm running IDEA 2018.1 Community, and I'm very confused about the behavior of the unused declaration inspection and entry points. As far as I can google, there's no documentation that covers this, but please correct me if I'm wrong. Basically, I have some methods in my code that are called through a reflection mechanism, so they are marked as unused declarations when I perform a code inspection. My assumption was that I could manually add these methods as entry points to circumvent this issue and this sort of works. If I do, the methods themselves are no longer marked as unused declarations, but other methods called from the method are still considered unreachable:

I would have expected that the inspection would be able to deduce that checkTransferRequiresApproval is in fact reachable since it is called from a method that is marked as an entry point, but perhaps I've fundamentally misunderstood something. It's hard to tell since documentation is so lacking on this topic. Can anybody explain to me if this is a bug or if I'm misusing this feature somehow?
Thanks in advance
请先登录再写评论。
Hello,
Thank you for your question, please follow the issue created for it in YouTrack: https://youtrack.jetbrains.com/issue/IDEA-202808