Fixed compilation. toArray → copyToArray
This commit is contained in:
+2
-3
@@ -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>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -110,4 +109,4 @@ private object DeclarationKindDetector : JetVisitor<AnnotationHostKind?, Unit?>(
|
|||||||
|
|
||||||
private fun detect(declaration: JetDeclaration, kind: String, name: String = declaration.getName() ?: "<anonymous>", newLineNeeded: Boolean = true)
|
private fun detect(declaration: JetDeclaration, kind: String, name: String = declaration.getName() ?: "<anonymous>", newLineNeeded: Boolean = true)
|
||||||
= AnnotationHostKind(kind, name, newLineNeeded)
|
= AnnotationHostKind(kind, name, newLineNeeded)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user