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 17bedda222f..57808e72bf0 100644 --- a/sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java +++ b/sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java @@ -24,9 +24,7 @@ import java.util.ArrayList; import java.util.List; -import java.util.Set; import javax.annotation.Nonnull; -import sootup.core.jimple.basic.Local; import sootup.core.model.Body; import sootup.core.views.View; @@ -39,30 +37,32 @@ public class LocalsValidator implements BodyValidator { */ @Override public List validate(@Nonnull Body body, @Nonnull View view) { -//TODO : Write tests + // 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; }