Skip to content

Commit 0079ee3

Browse files
committed
spelling: annotation
Signed-off-by: Josh Soref <[email protected]>
1 parent 6208071 commit 0079ee3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ open class KotlinUsesExtractor(
944944

945945

946946
private val jvmWildcardAnnotation = FqName("kotlin.jvm.JvmWildcard")
947-
private val jvmWildcardSuppressionAnnotaton = FqName("kotlin.jvm.JvmSuppressWildcards")
947+
private val jvmWildcardSuppressionAnnotation = FqName("kotlin.jvm.JvmSuppressWildcards")
948948

949949
private fun arrayExtendsAdditionAllowed(t: IrSimpleType): Boolean =
950950
// Note the array special case includes Array<*>, which does permit adding `? extends ...` (making `? extends Object[]` in that case)
@@ -977,7 +977,7 @@ open class KotlinUsesExtractor(
977977
when {
978978
t.hasAnnotation(jvmWildcardAnnotation) -> true
979979
!addByDefault -> false
980-
t.hasAnnotation(jvmWildcardSuppressionAnnotaton) -> false
980+
t.hasAnnotation(jvmWildcardSuppressionAnnotation) -> false
981981
v == Variance.IN_VARIANCE -> !(t.isNullableAny() || t.isAny())
982982
v == Variance.OUT_VARIANCE -> extendsAdditionAllowed(t)
983983
else -> false
@@ -1225,9 +1225,9 @@ open class KotlinUsesExtractor(
12251225
}
12261226

12271227
fun hasWildcardSuppressionAnnotation(d: IrDeclaration) =
1228-
d.hasAnnotation(jvmWildcardSuppressionAnnotaton) ||
1228+
d.hasAnnotation(jvmWildcardSuppressionAnnotation) ||
12291229
// Note not using `parentsWithSelf` as that only works if `d` is an IrDeclarationParent
1230-
d.parents.any { (it as? IrAnnotationContainer)?.hasAnnotation(jvmWildcardSuppressionAnnotaton) == true }
1230+
d.parents.any { (it as? IrAnnotationContainer)?.hasAnnotation(jvmWildcardSuppressionAnnotation) == true }
12311231

12321232
/**
12331233
* Class to hold labels for generated classes around local functions, lambdas, function references, and property references.

0 commit comments

Comments
 (0)