From 4ed635b4a7e031ab8c3a60044a4db4b949d33088 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Mon, 1 Dec 2014 15:37:48 +0300 Subject: [PATCH] Minor in JS frontend: compare fq names as string to avoid crash. --- .../src/org/jetbrains/k2js/analyze/suppressWarnings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.frontend/src/org/jetbrains/k2js/analyze/suppressWarnings.kt b/js/js.frontend/src/org/jetbrains/k2js/analyze/suppressWarnings.kt index 1911c95f903..9910876d336 100644 --- a/js/js.frontend/src/org/jetbrains/k2js/analyze/suppressWarnings.kt +++ b/js/js.frontend/src/org/jetbrains/k2js/analyze/suppressWarnings.kt @@ -29,7 +29,7 @@ import org.jetbrains.k2js.config.LibrarySourcesConfig class SuppressUnusedParameterForJsNative : DiagnosticsWithSuppression.SuppressStringProvider { override fun get(annotationDescriptor: AnnotationDescriptor): List { val descriptor = DescriptorUtils.getClassDescriptorForType(annotationDescriptor.getType()) - if (PredefinedAnnotation.NATIVE.fqName == DescriptorUtils.getFqNameSafe(descriptor)) { + if (PredefinedAnnotation.NATIVE.fqName.asString() == DescriptorUtils.getFqName(descriptor).asString()) { return listOf(Errors.UNUSED_PARAMETER.getName().toLowerCase()) }