diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/KotlinSuppressableWarningProblemGroup.kt b/idea/src/org/jetbrains/jet/plugin/highlighter/KotlinSuppressableWarningProblemGroup.kt index 093b41b08ce..fc7b57c15b3 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/KotlinSuppressableWarningProblemGroup.kt +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/KotlinSuppressableWarningProblemGroup.kt @@ -41,8 +41,7 @@ class KotlinSuppressableWarningProblemGroup( if (element == null) return SuppressIntentionAction.EMPTY_ARRAY - val actions = createSuppressWarningActions(element, diagnosticFactory) - return actions.toArray(Array(actions.size) {null}) as Array + return createSuppressWarningActions(element, diagnosticFactory).copyToArray() } } @@ -110,4 +109,4 @@ private object DeclarationKindDetector : JetVisitor( private fun detect(declaration: JetDeclaration, kind: String, name: String = declaration.getName() ?: "", newLineNeeded: Boolean = true) = AnnotationHostKind(kind, name, newLineNeeded) -} \ No newline at end of file +}