diff --git a/sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java b/sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java index eaf39c38f89..17bedda222f 100644 --- a/sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java +++ b/sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java @@ -39,30 +39,30 @@ public class LocalsValidator implements BodyValidator { */ @Override public List validate(@Nonnull Body body, @Nonnull View view) { - +//TODO : Write tests List exception = new ArrayList<>(); - final Set locals = body.getLocals(); - - body.getUses() - .parallelStream() - .filter(value -> value instanceof Local && !locals.contains(value)) - .forEach( - value -> - exception.add( - new ValidationException( - value, - "Local not in chain : " + value + " in " + body.getMethodSignature()))); - - body.getDefs() - .parallelStream() - .filter(value -> value instanceof Local && !locals.contains(value)) - .forEach( - value -> - exception.add( - new ValidationException( - value, - "Local not in chain : " + value + " in " + body.getMethodSignature()))); +// final Set locals = body.getLocals(); +// +// body.getUses() +// .parallelStream() +// .filter(value -> value instanceof Local && !locals.contains(value)) +// .forEach( +// value -> +// exception.add( +// new ValidationException( +// value, +// "Local not in chain : " + value + " in " + body.getMethodSignature()))); +// +// body.getDefs() +// .parallelStream() +// .filter(value -> value instanceof Local && !locals.contains(value)) +// .forEach( +// value -> +// exception.add( +// new ValidationException( +// value, +// "Local not in chain : " + value + " in " + body.getMethodSignature()))); return exception; } diff --git a/sootup.java.bytecode/pom.xml b/sootup.java.bytecode/pom.xml index f61f7538893..e3a1e875d14 100644 --- a/sootup.java.bytecode/pom.xml +++ b/sootup.java.bytecode/pom.xml @@ -38,12 +38,6 @@ dex2jar 2.4.6 - - org.soot-oss - sootup.jimple.parser - 1.1.2-SNAPSHOT - test -