Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akshitad11 committed Dec 25, 2023
1 parent ae8ede5 commit 3dd6d09
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -39,30 +37,32 @@ public class LocalsValidator implements BodyValidator {
*/
@Override
public List<ValidationException> validate(@Nonnull Body body, @Nonnull View<?> view) {
//TODO : Write tests
// TODO : Write tests
List<ValidationException> exception = new ArrayList<>();

Check warning on line 41 in sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java

View check run for this annotation

Codecov / codecov/patch

sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java#L41

Added line #L41 was not covered by tests

// final Set<Local> 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<Local> 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;

Check warning on line 67 in sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java

View check run for this annotation

Codecov / codecov/patch

sootup.core/src/main/java/sootup/core/validation/LocalsValidator.java#L67

Added line #L67 was not covered by tests
}
Expand Down

0 comments on commit 3dd6d09

Please sign in to comment.