mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
default Optional.empty for Optional type (IDEA-174268)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Implement methods" "true"
|
||||
import java.util.Optional;
|
||||
|
||||
interface I<T> {
|
||||
Optional<T> foo();
|
||||
}
|
||||
class Impl implements I<String> {
|
||||
@Override
|
||||
public Optional<String> foo() {
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Implement methods" "true"
|
||||
import java.util.Optional;
|
||||
|
||||
interface I<T> {
|
||||
Optional<T> foo();
|
||||
}
|
||||
class I<caret>mpl implements I<String> {
|
||||
}
|
||||
Reference in New Issue
Block a user