From c999306772707c1e8b61f4c5b348b3ab73df994c Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Sun, 6 Oct 2024 10:28:49 +0200 Subject: [PATCH] Remove contextSensitive --- .../MigrateResponseStatusExceptionGetRawStatusCodeMethod.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java b/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java index ded9f7bc0..800ae1743 100644 --- a/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java +++ b/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java @@ -42,7 +42,6 @@ public TreeVisitor 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()); }