Skip to content

Commit

Permalink
Remove contextSensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 6, 2024
1 parent 582a3ea commit c999306
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
MethodCall tree = mc.getTree();
if (tree instanceof J.MethodInvocation) {
return JavaTemplate.builder("#{any()}.getStatusCode().value()")
.contextSensitive()
.javaParser(JavaParser.fromJavaVersion().classpathFromResources(ctx, "spring-core-6", "spring-beans-6", "spring-web-6"))
.build().apply(mc.getCursor(), tree.getCoordinates().replace(), ((J.MethodInvocation) tree).getSelect());
}
Expand Down

0 comments on commit c999306

Please sign in to comment.