spotify / missinglink

Build time tool for detecting link problems in java projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reachability ideas

pettermahlen opened this issue · comments

We could probably improve the reachability logic a bit.

  • If a class is referenced somewhere, we should visit the static initializer method
  • If a class is instantiated somewhere, we should visit all non-static methods (because we can't really know when they're going to be invoked because of external interfaces and inheritance)
  • Static methods should only be visited when they're actually called.

This (and maybe more) would probably be solved by proguard #9. That's not necessarily the best solution, but one solution at least.