mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
10 lines
279 B
Java
10 lines
279 B
Java
// "Fix all ''Optional' can be replaced with sequence of 'if' statements' problems in file" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
String notNullValueCheckIsRemoved(String in) {
|
|
if (in == null) return "foo";
|
|
return Optional.ofNullable<caret>(in).orElse("bar");
|
|
}
|
|
} |