Skip to content

Commit

Permalink
Added explicit type arguments to some method calls to work around typ…
Browse files Browse the repository at this point in the history
…e inference limitations in Eclipse (and thus GWT) compiler (#9)
  • Loading branch information
nfekete authored and akarnokd committed Dec 18, 2016
1 parent 86ed64a commit 871da55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/ix/Ix.java
Original file line number Diff line number Diff line change
Expand Up @@ -2520,7 +2520,7 @@ public final List<T> toList() {
* @since 1.0
*/
public final <K> Map<K, T> toMap(IxFunction<? super T, ? extends K> keySelector) {
return collectToMap(keySelector).first();
return this.<K>collectToMap(keySelector).first();
}

/**
Expand All @@ -2540,7 +2540,7 @@ public final <K> Map<K, T> toMap(IxFunction<? super T, ? extends K> keySelector)
* @since 1.0
*/
public final <K, V> Map<K, V> toMap(IxFunction<? super T, ? extends K> keySelector, IxFunction<? super T, ? extends V> valueSelector) {
return collectToMap(keySelector, valueSelector).first();
return this.<K, V>collectToMap(keySelector, valueSelector).first();
}

/**
Expand All @@ -2555,7 +2555,7 @@ public final <K, V> Map<K, V> toMap(IxFunction<? super T, ? extends K> keySelect
* @since 1.0
*/
public final <K> Map<K, Collection<T>> toMultimap(IxFunction<? super T, ? extends K> keySelector) {
return collectToMultimap(keySelector).first();
return this.<K>collectToMultimap(keySelector).first();
}

/**
Expand All @@ -2574,7 +2574,7 @@ public final <K> Map<K, Collection<T>> toMultimap(IxFunction<? super T, ? extend
* @since 1.0
*/
public final <K, V> Map<K, Collection<V>> toMultimap(IxFunction<? super T, ? extends K> keySelector, IxFunction<? super T, ? extends V> valueSelector) {
return collectToMultimap(keySelector, valueSelector).first();
return this.<K, V>collectToMultimap(keySelector, valueSelector).first();
}

/**
Expand Down

0 comments on commit 871da55

Please sign in to comment.