Fix - Rather simple solution
@@ -23,10 +23,11 @@ import me.coley.recaf.ui.FormatFactory;
import me.coley.recaf.util.RollingList;
public class Search {
- public static List<Result> search(Parameter param) {
+ public static List<Result> search(Parameter... params) {
List<Result> results = new ArrayList<>();
Map<String, ClassNode> nodes = Input.get().getClasses();
for (Entry<String, ClassNode> entry : nodes.entrySet()) {
+ for (Parameter param : params) {
// check if entry should be skipped
if (skip(param.getSkipList(), entry.getKey())) {
continue;
@@ -53,7 +54,8 @@ public class Search {
results.add(Result.method(cn, mn));
}
}
- // skip to next entry. Lets the following code be less indented.
+ // skip to next entry. Lets the following code be less
+ // indented.
continue;
}
for (MethodNode mn : cn.methods) {
@@ -107,7 +109,8 @@ public class Search {
LdcInsnNode ldc = (LdcInsnNode) ain;
// check against types stored in ldc's.
if (ldc.cst instanceof Type) {
- // TODO: Does this include the ability for LDC
+ // TODO: Does this include the ability for
+ // LDC
// to hold org.objectweb.asm.Handle?
Type type = (Type) ldc.cst;
if (type.getSort() == Type.OBJECT && param.validType(type.getClassName())) {
@@ -162,7 +165,7 @@ public class Search {
}
}
}
-
+ }
}
return results;
}
