File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/test/kotlin/org/openrewrite/java/migrate Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,9 @@ class JavaxToJakartaTest : JavaRecipeTest {
143143 before = """
144144 import java.util.List;
145145 public class B {
146- public <T extends javax.xml.bind.annotation.A> T generic(T n, List<? super javax.xml.bind.annotation.A> in);
146+ public <T extends javax.xml.bind.annotation.A> T generic(T n, List<? super javax.xml.bind.annotation.A> in) {
147+ return n;
148+ }
147149 public void test() {
148150 javax.xml.bind.annotation.A.stat();
149151 this.<javax.xml.bind.annotation.A>generic(null, null);
@@ -153,7 +155,9 @@ class JavaxToJakartaTest : JavaRecipeTest {
153155 after = """
154156 import java.util.List;
155157 public class B {
156- public <T extends jakarta.xml.bind.annotation.A> T generic(T n, List<? super jakarta.xml.bind.annotation.A> in);
158+ public <T extends jakarta.xml.bind.annotation.A> T generic(T n, List<? super jakarta.xml.bind.annotation.A> in) {
159+ return n;
160+ }
157161 public void test() {
158162 jakarta.xml.bind.annotation.A.stat();
159163 this.<jakarta.xml.bind.annotation.A>generic(null, null);
You can’t perform that action at this time.
0 commit comments