mirror of
https://github.com/revanced/smali.git
synced 2025-05-09 10:54:29 +02:00
Move ExceptionWithContext to Util module
This commit is contained in:
parent
70aa787967
commit
bf95959ae4
@ -43,7 +43,7 @@ import org.jf.dexlib.Code.OffsetInstruction;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Debug.DebugInstructionIterator;
|
||||
import org.jf.dexlib.Util.AccessFlags;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.SparseIntArray;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -30,6 +30,7 @@
|
||||
*/
|
||||
|
||||
dependencies {
|
||||
compile project(':util')
|
||||
compile 'com.google.code.findbugs:jsr305:1.3.9'
|
||||
compile 'com.google.collections:google-collections:1.0'
|
||||
}
|
@ -30,7 +30,7 @@ package org.jf.dexlib;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.Input;
|
||||
import org.jf.dexlib.Util.ReadOnlyArrayList;
|
||||
|
||||
|
@ -30,6 +30,7 @@ package org.jf.dexlib;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.jf.dexlib.Util.*;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
@ -32,7 +32,7 @@ import org.jf.dexlib.Code.*;
|
||||
import org.jf.dexlib.Item;
|
||||
import org.jf.dexlib.ItemType;
|
||||
import org.jf.dexlib.MethodIdItem;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -30,7 +30,7 @@ package org.jf.dexlib.Code.Analysis;
|
||||
|
||||
import org.jf.dexlib.*;
|
||||
import org.jf.dexlib.Util.AccessFlags;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.SparseArray;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
@ -32,7 +32,7 @@ import org.jf.dexlib.*;
|
||||
import org.jf.dexlib.Code.*;
|
||||
import org.jf.dexlib.Code.Format.*;
|
||||
import org.jf.dexlib.Util.AccessFlags;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.SparseArray;
|
||||
|
||||
import java.util.BitSet;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
package org.jf.dexlib.Code.Analysis;
|
||||
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
public class ValidationException extends ExceptionWithContext {
|
||||
private int codeAddress;
|
||||
|
@ -30,8 +30,7 @@ package org.jf.dexlib.Code;
|
||||
|
||||
import org.jf.dexlib.Code.Format.*;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.Hex;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
public class InstructionIterator {
|
||||
public static void IterateInstructions(DexFile dexFile, byte[] insns, ProcessInstructionDelegate delegate) {
|
||||
|
@ -33,6 +33,7 @@ import org.jf.dexlib.Code.*;
|
||||
import org.jf.dexlib.Debug.DebugInstructionIterator;
|
||||
import org.jf.dexlib.Debug.DebugOpcode;
|
||||
import org.jf.dexlib.Util.*;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -29,6 +29,7 @@
|
||||
package org.jf.dexlib;
|
||||
|
||||
import org.jf.dexlib.Util.*;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
import java.io.*;
|
||||
import java.security.DigestException;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
package org.jf.dexlib;
|
||||
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.Input;
|
||||
|
||||
public class IndexedSection<T extends Item> extends Section<T> {
|
||||
|
@ -31,7 +31,7 @@ package org.jf.dexlib;
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.jf.dexlib.Util.AlignmentUtils;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.Input;
|
||||
|
||||
public abstract class Item<T extends Item> implements Comparable<T> {
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
package org.jf.dexlib;
|
||||
|
||||
import org.jf.dexlib.Util.ExceptionWithContext;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
import org.jf.dexlib.Util.SparseArray;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
package org.jf.dexlib.Util;
|
||||
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
import java.util.ArrayList;
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
package org.jf.dexlib.Util;
|
||||
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
/**
|
||||
* Implementation of {@link Input} which reads the data from a
|
||||
* <code>byte[]</code> instance.
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
package org.jf.dexlib.Util;
|
||||
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
|
@ -22,7 +22,7 @@
|
||||
* under the original license
|
||||
*/
|
||||
|
||||
package org.jf.dexlib.Util;
|
||||
package org.jf.util;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
Loading…
x
Reference in New Issue
Block a user