mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-19 12:06:54 +07:00
11 lines
240 B
Java
11 lines
240 B
Java
// "Replace Optional.isPresent() condition with functional style expression" "false"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void testOptional(Optional<String> str) {
|
|
if (str.isPrese<caret>nt()) {
|
|
str.get();
|
|
}
|
|
}
|
|
} |