mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
12 lines
267 B
Java
12 lines
267 B
Java
// "Replace Optional.isPresent() condition with functional style expression" "true-preview"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
String val;
|
|
|
|
public void testOptional(Optional<String> str) {
|
|
this.val = str.orElse("");
|
|
System.out.println(val);
|
|
}
|
|
} |