Skip to content

Commit 0fc1c58

Browse files
committed
Apply the change to android/guava/src/com/google/common/collect/Maps.java as well
1 parent 51ec4e9 commit 0fc1c58

File tree

1 file changed

+2
-1
lines changed
  • android/guava/src/com/google/common/collect

1 file changed

+2
-1
lines changed

android/guava/src/com/google/common/collect/Maps.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,8 @@ public static <K, V> ImmutableMap<K, V> toMap(
12471247
@CanIgnoreReturnValue
12481248
public static <K, V> ImmutableMap<K, V> uniqueIndex(
12491249
Iterable<V> values, Function<? super V, K> keyFunction) {
1250-
if (values instanceof Collection) {
1250+
if (values instanceof Collection
1251+
&& !(values instanceof FilteredCollection || values instanceof FilteredMultimapValues)) {
12511252
return uniqueIndex(
12521253
values.iterator(),
12531254
keyFunction,

0 commit comments

Comments
 (0)