skip inference from parent for diamond's search for constructor (IDEA-101166)

This commit is contained in:
anna
2013-02-18 11:29:40 +01:00
parent 7cefbc8d9c
commit 43e079d97d
2 changed files with 19 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ public class IDEA10166 {
Supplier<M1> mapSupplier,
BiConsumer<M1, T> accumulator) {
BinaryOperator<M1> mapBinaryOperator = leftMapMerger(mergeFunction);
return null;//new CollectorImpl<>(mapSupplier, accumulator, leftMapMerger(mergeFunction));
return new CollectorImpl<>(mapSupplier, accumulator, leftMapMerger(mergeFunction));
}
static <K, V, M2 extends Map<K, V>> BinaryOperator<M2> leftMapMerger(BinaryOperator<V> mergeFunction) {