From 123aef6846c2d4151d8f8daa16b87286a559e65e Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Tue, 1 Oct 2013 17:02:33 +0400 Subject: [PATCH] =?UTF-8?q?Fixed=20compilation.=20toArray=20=E2=86=92=20co?= =?UTF-8?q?pyToArray?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../highlighter/KotlinSuppressableWarningProblemGroup.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 +}