diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/autocasts/DataFlowInfo.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/autocasts/DataFlowInfo.java index b74b1d2d044..e0c5a2f3b30 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/autocasts/DataFlowInfo.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/autocasts/DataFlowInfo.java @@ -181,7 +181,7 @@ public class DataFlowInfo { ListMultimap newTypeInfo = Multimaps.newListMultimap(Maps.>newHashMap(), CommonSuppliers.getArrayListSupplier()); - Set keys = typeInfo.keySet(); + Set keys = Sets.newHashSet(typeInfo.keySet()); keys.retainAll(other.typeInfo.keySet()); for (DataFlowValue key : keys) {