Revert "Revert "Temporary workaround for failing tests on teamcity.""

This reverts commit 2c51799e0a.
This commit is contained in:
Victor Petukhov
2021-12-27 15:56:59 +03:00
parent 9c225c5b56
commit 29f174f074
2 changed files with 2 additions and 2 deletions
@@ -202,7 +202,7 @@ class JavaTypeEnhancementStateParser(
}
companion object {
private val DEFAULT = JavaTypeEnhancementStateParser(MessageCollector.NONE, KotlinVersion.CURRENT)
private val DEFAULT = JavaTypeEnhancementStateParser(MessageCollector.NONE, KotlinVersion(1, 6, 20))
private const val NULLABILITY_ANNOTATIONS_COMPILER_OPTION = "-Xnullability-annotations"
fun parsePlainNullabilityAnnotationReportLevels(nullabilityAnnotations: String): Pair<FqName, ReportLevel> =
@@ -72,7 +72,7 @@ fun getDefaultReportLevelForAnnotation(annotationFqName: FqName) =
fun getReportLevelForAnnotation(
annotation: FqName,
configuredReportLevels: NullabilityAnnotationStates<ReportLevel>,
configuredKotlinVersion: KotlinVersion = KotlinVersion.CURRENT
configuredKotlinVersion: KotlinVersion = KotlinVersion(1, 6, 20)
): ReportLevel {
configuredReportLevels[annotation]?.let { return it }