mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
12 lines
238 B
Java
12 lines
238 B
Java
// "Remove redundant steps from optional chain" "true"
|
|
import java.util.Optional;
|
|
|
|
public class Test {
|
|
public Optional<String> test() {
|
|
return getOpt();
|
|
}
|
|
|
|
private Optional<String> getOpt() {
|
|
return Optional.of("foo");
|
|
}
|
|
} |