Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/java/org/openrewrite/java/migrate/IBMSemeruTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ void bar() {
}
}

public static Handler testMethod(Handler handler){ //flag (2)
return handler;
public static Handler testMethod(Handler handler1){ //flag (2)
return handler1;
}
}
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ String foo(Optional<String> optional) {
import java.util.Optional;

class A {
String foo(Optional<String> optional) {
return optional.orElse(null);
String foo(Optional<String> optional1) {
return optional1.orElse(null);
}
}
"""));
Expand All @@ -108,8 +108,8 @@ Optional<String> foo(Optional<String> optional) {
import java.util.Optional;

class A {
Optional<String> foo(Optional<String> optional) {
return optional.orElse("other");
Optional<String> foo(Optional<String> optional1) {
return optional1.orElse("other");
}
}
"""));
Expand All @@ -132,8 +132,8 @@ Optional<String> foo(Optional<String> optional) {
import java.util.Optional;

class A {
Optional<String> foo(Optional<String> optional) {
return optional.orElseGet(() -> "other");
Optional<String> foo(Optional<String> optional1) {
return optional1.orElseGet(() -> "other");
}
}
"""));
Expand All @@ -159,8 +159,8 @@ String foo(Optional<String> optional, Supplier<String> supplier) {
import java.util.function.Supplier;

class A {
String foo(Optional<String> optional, Supplier<String> supplier) {
return optional.orElseGet(supplier);
String foo(Optional<String> optional1, Supplier<String> supplier1) {
return optional1.orElseGet(supplier1);
}
}
"""
Expand All @@ -184,8 +184,8 @@ Optional<String> foo(Optional<String> optional) {
import java.util.Optional;

class A {
Optional<String> foo(Optional<String> optional) {
return optional.map(String::toUpperCase);
Optional<String> foo(Optional<String> optional1) {
return optional1.map(String::toUpperCase);
}
}
"""));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public void testJakarta() {
public class Test {

public void testJakarta() {
MethodExpression methodBinding = null;
ELResolver propertyResolver = null;
ValueExpression valueBinding = null;
MethodExpression methodExpression = null;
ELResolver eLResolver = null;
ValueExpression valueExpression = null;
}
}
"""
Expand Down Expand Up @@ -112,11 +112,11 @@ public void testJakarta_1() {
public class Test {

public void testJakarta_1() {
ELResolver variableResolver = null;
ELException evaluationException = null;
MethodNotFoundException methodNotFoundException = null;
PropertyNotFoundException propertyNotFoundException = null;
ELException referenceSyntaxException = null;
ELResolver eLResolver = null;
ELException eLException = null;
MethodNotFoundException methodNotFoundException1 = null;
PropertyNotFoundException propertyNotFoundException1 = null;
ELException eLException1 = null;
}
}
"""
Expand Down Expand Up @@ -154,9 +154,9 @@ public void testJavax() {
public class Test {

public void testJavax() {
MethodExpression methodBinding = null;
ELResolver propertyResolver = null;
ValueExpression valueBinding = null;
MethodExpression methodExpression = null;
ELResolver eLResolver = null;
ValueExpression valueExpression = null;
}
}
"""
Expand Down Expand Up @@ -199,11 +199,11 @@ public void testJavax_1() {
public class Test {

public void testJavax_1() {
ELResolver variableResolver = null;
ELException evaluationException = null;
MethodNotFoundException methodNotFoundException = null;
PropertyNotFoundException propertyNotFoundException = null;
ELException referenceSyntaxException = null;
ELResolver eLResolver = null;
ELException eLException = null;
MethodNotFoundException methodNotFoundException1 = null;
PropertyNotFoundException propertyNotFoundException1 = null;
ELException eLException1 = null;
}
}
"""
Expand Down