mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
9 lines
203 B
Java
9 lines
203 B
Java
// "Use 'requireNonNullElse' method without lambda" "true-preview"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public String test(String foo, String bar) {
|
|
return Objects.requireNonNullElse(foo, bar);
|
|
}
|
|
} |