Skip to content

Commit ba42af1

Browse files
committed
Adjust ReplaceStringLiteralWithConstantTest calls
1 parent 147eff5 commit ba42af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor(AtomicBoolean acc) {
126126
public J preVisit(J tree, ExecutionContext ctx) {
127127
stopAfterPreVisit();
128128
for (String header : HEADERS) {
129-
doAfterVisit(new ReplaceStringLiteralWithConstant("org.springframework.http.HttpHeaders." + header).getVisitor());
129+
doAfterVisit(new ReplaceStringLiteralWithConstant(null, "org.springframework.http.HttpHeaders." + header).getVisitor());
130130
}
131131
return tree;
132132
}

0 commit comments

Comments
 (0)