mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
ed28503329
commit
52dcea698d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user