Fixed compilation. toArray → copyToArray

This commit is contained in:
Evgeny Gerashchenko
2013-10-01 17:02:33 +04:00
parent 2ae1a2c81b
commit 123aef6846
@@ -41,8 +41,7 @@ class KotlinSuppressableWarningProblemGroup(
if (element == null) if (element == null)
return SuppressIntentionAction.EMPTY_ARRAY return SuppressIntentionAction.EMPTY_ARRAY
val actions = createSuppressWarningActions(element, diagnosticFactory) return createSuppressWarningActions(element, diagnosticFactory).copyToArray()
return actions.toArray(Array<SuppressIntentionAction?>(actions.size) {null}) as Array<SuppressIntentionAction>
} }
} }