diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/SubstitutingScope.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/SubstitutingScope.java index c021571dd7b..470f6d41e50 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/SubstitutingScope.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/SubstitutingScope.java @@ -69,7 +69,7 @@ public class SubstitutingScope implements JetScope { if (substitutor.isEmpty()) return descriptors; if (descriptors.isEmpty()) return descriptors; - Set result = Sets.newHashSet(); + Set result = Sets.newHashSetWithExpectedSize(descriptors.size()); for (D descriptor : descriptors) { D substitute = substitute(descriptor); if (substitute != null) {