mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
method refs: infer 'diamond' if constructor ref type is raw (IDEA-142142)
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
public Optional<Set<String>> foo(Optional<Set<String>> args) {
|
||||
return args.map(HashSet::new).map(Collections::unmodifiableSet);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user