diff --git a/src/main/java/org/openrewrite/staticanalysis/SimplifyConsecutiveAssignments.java b/src/main/java/org/openrewrite/staticanalysis/SimplifyConsecutiveAssignments.java index 6fcfc5c12..e80a811a6 100644 --- a/src/main/java/org/openrewrite/staticanalysis/SimplifyConsecutiveAssignments.java +++ b/src/main/java/org/openrewrite/staticanalysis/SimplifyConsecutiveAssignments.java @@ -49,8 +49,6 @@ public TreeVisitor getVisitor() { // TODO if we had a `replace()` coordinate on every `Expression`, we wouldn't need the left side of this final JavaTemplate combinedAssignment = JavaTemplate .builder("o = (#{any()} #{} #{any()});") - .contextSensitive() - // ok to ignore invalid type info on left-hand side of assignment. .build(); @Override diff --git a/src/main/java/org/openrewrite/staticanalysis/WhileInsteadOfFor.java b/src/main/java/org/openrewrite/staticanalysis/WhileInsteadOfFor.java index c20d0c823..f0c1ef704 100644 --- a/src/main/java/org/openrewrite/staticanalysis/WhileInsteadOfFor.java +++ b/src/main/java/org/openrewrite/staticanalysis/WhileInsteadOfFor.java @@ -52,7 +52,6 @@ public Duration getEstimatedEffortPerOccurrence() { public TreeVisitor getVisitor() { return new JavaVisitor() { final JavaTemplate whileLoop = JavaTemplate.builder("while(#{any(boolean)}) {}") - .contextSensitive() .build(); @Override