mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
11 lines
246 B
Java
11 lines
246 B
Java
// "Replace Optional.isPresent() condition with functional style expression" "true-preview"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main<T> {
|
|
Optional<Object> foo(Optional<Object> first) {
|
|
Optional<Object> o;
|
|
o = first;
|
|
return o;
|
|
}
|
|
} |