Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Vázquez committed Aug 2, 2021
1 parent 15cd04a commit 677956b
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@

package com.javadeobfuscator.deobfuscator;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
Expand All @@ -31,19 +24,12 @@
import com.javadeobfuscator.deobfuscator.config.TransformerConfigDeserializer;
import com.javadeobfuscator.deobfuscator.exceptions.NoClassInPathException;
import com.javadeobfuscator.deobfuscator.exceptions.PreventableStackOverflowError;
import com.javadeobfuscator.deobfuscator.transformers.DelegatingTransformer;
import com.javadeobfuscator.deobfuscator.transformers.Transformer;
import org.apache.commons.cli.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class DeobfuscatorMain {
public static void main(String[] args) throws ClassNotFoundException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
package com.javadeobfuscator.deobfuscator.analyzer.frame;

import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.LabelNode;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class JumpFrame extends Frame {
private List<Frame> comparators = new ArrayList<>();
private transient List<AbstractInsnNode> targets;
private transient List<AbstractInsnNode> targets;

public JumpFrame(int opcode, List<Frame> comparators, AbstractInsnNode... targets) {
super(opcode);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.javadeobfuscator.deobfuscator.analyzer.frame;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.javadeobfuscator.deobfuscator.analyzer.frame;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.List;
import java.util.Map;

import com.javadeobfuscator.deobfuscator.asm.ConstantPool;
import com.javadeobfuscator.deobfuscator.executor.MethodExecutor;
import com.javadeobfuscator.deobfuscator.executor.Context;
import com.javadeobfuscator.deobfuscator.executor.providers.MethodProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
package com.javadeobfuscator.deobfuscator.graph;

import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.MethodNode;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

public class GraphHelper {
public static Map<String, ClassNode> validateUniqueClasses(Collection<ClassNode> nodes) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.javadeobfuscator.deobfuscator.iterablematcher;

import com.javadeobfuscator.deobfuscator.utils.Utils;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.LdcInsnNode;

public class ConstantIntInsnStep extends IterableStep<AbstractInsnNode> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import org.apache.commons.lang3.Validate;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.MethodInsnNode;
import org.objectweb.asm.tree.TypeInsnNode;

public class FieldInsnStep extends IterableStep<FieldInsnNode> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.javadeobfuscator.deobfuscator.iterablematcher;

import java.util.Objects;

import com.javadeobfuscator.deobfuscator.utils.Utils;
import org.apache.commons.lang3.Validate;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.TypeInsnNode;
import org.objectweb.asm.tree.VarInsnNode;

public class TypeInsnStep extends IterableStep<TypeInsnNode> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.javadeobfuscator.deobfuscator.rules.*;
import com.javadeobfuscator.deobfuscator.transformers.*;
import com.javadeobfuscator.deobfuscator.transformers.classguard.*;
import org.objectweb.asm.tree.*;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;

import static org.objectweb.asm.Opcodes.*;

public class TrapHandlerMerger extends Transformer<TransformerConfig> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.javadeobfuscator.deobfuscator.transformers.zelix.v9.utils;

import com.javadeobfuscator.deobfuscator.graph.inheritancegraph.InheritanceGraph;
import com.javadeobfuscator.deobfuscator.transformers.ClassFinder;
import com.javadeobfuscator.deobfuscator.utils.TransformerHelper;
import org.objectweb.asm.tree.ClassNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

package com.javadeobfuscator.deobfuscator.utils;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ClassTree {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import org.objectweb.asm.tree.*;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -36,6 +35,7 @@ public class InstructionModifier {
public void append(AbstractInsnNode original, InsnList append) {
appends.put(original, append);
}

public void prepend(AbstractInsnNode original, InsnList append) {
prepends.put(original, append);
}
Expand Down

0 comments on commit 677956b

Please sign in to comment.