Skip to content

Commit

Permalink
Apply the change to `android/guava/src/com/google/common/collect/Maps…
Browse files Browse the repository at this point in the history
….java` as well
  • Loading branch information
oksana-evs committed Jul 17, 2023
1 parent 51ec4e9 commit 0fc1c58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/guava/src/com/google/common/collect/Maps.java
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,8 @@ public static <K, V> ImmutableMap<K, V> toMap(
@CanIgnoreReturnValue
public static <K, V> ImmutableMap<K, V> uniqueIndex(
Iterable<V> values, Function<? super V, K> keyFunction) {
if (values instanceof Collection) {
if (values instanceof Collection
&& !(values instanceof FilteredCollection || values instanceof FilteredMultimapValues)) {
return uniqueIndex(
values.iterator(),
keyFunction,
Expand Down

0 comments on commit 0fc1c58

Please sign in to comment.