mirror of
https://github.com/revanced/smali.git
synced 2025-05-01 23:24:38 +02:00
Massage the tries before using them for method analysis
This commit is contained in:
parent
78bd9c29a9
commit
e6da8cd564
@ -49,6 +49,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference;
|
|||||||
import org.jf.dexlib2.util.MethodUtil;
|
import org.jf.dexlib2.util.MethodUtil;
|
||||||
import org.jf.dexlib2.util.ReferenceUtil;
|
import org.jf.dexlib2.util.ReferenceUtil;
|
||||||
import org.jf.dexlib2.util.TypeUtils;
|
import org.jf.dexlib2.util.TypeUtils;
|
||||||
|
import org.jf.dexlib2.writer.util.TryListBuilder;
|
||||||
import org.jf.util.BitSetUtils;
|
import org.jf.util.BitSetUtils;
|
||||||
import org.jf.util.ExceptionWithContext;
|
import org.jf.util.ExceptionWithContext;
|
||||||
import org.jf.util.SparseArray;
|
import org.jf.util.SparseArray;
|
||||||
@ -401,6 +402,7 @@ public class MethodAnalyzer {
|
|||||||
//and is covered by a try block should be set to a list of the first instructions of each exception handler
|
//and is covered by a try block should be set to a list of the first instructions of each exception handler
|
||||||
//for the try block covering the instruction
|
//for the try block covering the instruction
|
||||||
List<? extends TryBlock<? extends ExceptionHandler>> tries = methodImpl.getTryBlocks();
|
List<? extends TryBlock<? extends ExceptionHandler>> tries = methodImpl.getTryBlocks();
|
||||||
|
tries = TryListBuilder.massageTryBlocks(tries);
|
||||||
int triesIndex = 0;
|
int triesIndex = 0;
|
||||||
TryBlock currentTry = null;
|
TryBlock currentTry = null;
|
||||||
AnalyzedInstruction[] currentExceptionHandlers = null;
|
AnalyzedInstruction[] currentExceptionHandlers = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user