skylot/jadx — pull request #30 by riboribo (2014-12-05 21:26:15+00:00)
Title: Removed duplicate occurance of try/catch handler block from MethodNode handlers list.

With the addition of TryCatchRegion, moving the exception handler to
that region, it can be removed from the MethodsNode.handlers List.
Removing it avoids having the exception handler visted twice in
DepthTraveral.

The change is to ProcessTryCatchRegions.checkAndWrap (because a
reference to mth is there). The prefered place to remove the handlers
from the list would be TryCatchRegion.setTryCatchBlock where the
handlerRegion is .put in to catchRegions, but no ref to mth is available
there.

The addition to jadx/core/utils/Utils.java is for various (potentially
temporary debug functions, one of which is used in the JUnit test to
inspect the tree)

JUnit test added to jadx/test/integration/trycatch/TestTryCatch2.java