mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
9 lines
243 B
Java
9 lines
243 B
Java
// "Replace Optional.isPresent() condition with functional style expression" "false"
|
|
|
|
import java.util.Optional;
|
|
|
|
public class Main {
|
|
public void test(Optional<String> opt) {
|
|
System.out.println(opt.<caret>isPresent() ? opt.get():);
|
|
}
|
|
} |