mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
method reference: take type args into account
This commit is contained in:
+1
@@ -5,6 +5,7 @@ class Test {
|
||||
|
||||
void foo(final Stream<String> stream){
|
||||
stream.collect(ArrayList::new, ArrayList::add, ArrayList::addAll);
|
||||
stream.collect(ArrayList<String>::new, ArrayList::add, ArrayList::addAll);
|
||||
stream.collect(ArrayList::new, Collection::add, Collection::addAll);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user