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