Skip to content

Commit d4c1359

Browse files
author
Joan Viladrosa
authored
Fixed versions for good (#444)
1 parent b0f041f commit d4c1359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/openrewrite/java/spring/http/ReplaceStringLiteralsWithMediaTypeConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ public J preVisit(J tree, ExecutionContext ctx) {
134134
}
135135

136136
static boolean declaresSpringWebDependency(SourceFile sourceFile, ExecutionContext ctx) {
137-
TreeVisitor<?, ExecutionContext> visitor = new DependencyInsight("org.springframework", "spring-web", "compile", null).getVisitor();
137+
TreeVisitor<?, ExecutionContext> visitor = new DependencyInsight("org.springframework", "spring-web", "compile", null, null).getVisitor();
138138
if (visitor.isAcceptable(sourceFile, ctx) && visitor.visit(sourceFile, ctx) != sourceFile) {
139139
return true;
140140
}
141-
visitor = new org.openrewrite.gradle.search.DependencyInsight("org.springframework", "spring-web", "compileClasspath").getVisitor();
141+
visitor = new org.openrewrite.gradle.search.DependencyInsight("org.springframework", "spring-web", "compileClasspath", null).getVisitor();
142142
return visitor.isAcceptable(sourceFile, ctx) && visitor.visit(sourceFile, ctx) != sourceFile;
143143
}
144144
}

0 commit comments

Comments
 (0)