Add comments about class/intern table search order.

Also add a related comment about pruning classes only from
the last class set in the `ClassTable` and move some local
variables out of a loop.

Test: Rely on TreeHugger.
Bug: 181943478
Change-Id: Iba1296fb60fde2f90e1e256865bf02ebc3d8f292
3 files changed