[java-inspections] Fix test after lambda2methodRef update

Due to accidental compilation error in test, lambda2methodRef declined the conversion. This patch fixes the compilation error

GitOrigin-RevId: 27f8f1a71ec971859417b17f36b830175c9da3a5
This commit is contained in:
Tagir Valeev
2021-10-09 13:28:58 +00:00
committed by intellij-monorepo-bot
parent ed28503329
commit 52dcea698d
2 changed files with 2 additions and 2 deletions
@@ -3,7 +3,7 @@
import java.util.*;
class Test {
public void test(Object o) {
public Object test(Object o) {
return Objects.requireNonNullElseGet(o, Object::new);
}
}
@@ -3,7 +3,7 @@
import java.util.*;
class Test {
public void test(Object o) {
public Object test(Object o) {
if<caret>(o == null) {
return new Object();
} else {