Skip to content

Commit

Permalink
Fixed javax to jakarta tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
traceyyoshima committed May 28, 2021
1 parent 9ebcccf commit 01a0d50
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 177 deletions.
6 changes: 0 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ dependencies {

testImplementation("org.assertj:assertj-core:latest.release")

testImplementation("javax.xml.ws:jaxws-api:2.3.1")
testImplementation("jakarta.xml.ws:jakarta.xml.ws-api:3.0.0")

testImplementation("javax.xml.bind:jaxb-api:2.4.0-b180830.0359")
testImplementation("jakarta.xml.bind:jakarta.xml.bind-api:3.0.0")

testImplementation("com.google.guava:guava:29.0-jre")

testRuntimeOnly("org.openrewrite:rewrite-java-11:${rewriteVersion}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected TreeVisitor<?, ExecutionContext> getVisitor() {
public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext executionContext) {
if(DIRECT_EXECUTOR.matches(method)) {
maybeRemoveImport("com.google.common.util.concurrent.MoreExecutors");
return template.withTemplate(method, method.getCoordinates().replace());
return method.withTemplate(template, method.getCoordinates().replace());
}
return super.visitMethodInvocation(method, executionContext);
}
Expand Down
Loading

0 comments on commit 01a0d50

Please sign in to comment.