From 3e3b184ba82f169abd7545882bdebebb4e445b46 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 15 Jun 2012 19:29:38 +0400 Subject: [PATCH] create copy of typeInfo set in DataFlowInfo.or --- .../jet/lang/resolve/calls/autocasts/DataFlowInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {