Skip to content

Commit

Permalink
fix: additional patterns to restore enum classes (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Jan 19, 2020
1 parent 5e7388f commit 62ca30b
Show file tree
Hide file tree
Showing 9 changed files with 576 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@

import jadx.core.dex.attributes.AType;
import jadx.core.dex.attributes.IAttribute;
import jadx.core.dex.info.FieldInfo;
import jadx.core.dex.instructions.mods.ConstructorInsn;
import jadx.core.dex.nodes.ClassNode;
import jadx.core.dex.nodes.FieldNode;
import jadx.core.dex.nodes.MethodNode;

public class EnumClassAttr implements IAttribute {

public static class EnumField {
private final FieldInfo field;
private final FieldNode field;
private final ConstructorInsn constrInsn;
private final int startArg;
private ClassNode cls;

public EnumField(FieldInfo field, ConstructorInsn co, int startArg) {
public EnumField(FieldNode field, ConstructorInsn co, int startArg) {
this.field = field;
this.constrInsn = co;
this.startArg = startArg;
}

public FieldInfo getField() {
public FieldNode getField() {
return field;
}

Expand Down
Loading

0 comments on commit 62ca30b

Please sign in to comment.