[FE 1.0] Use 1.7.20 as default language version for java type enhancement

^KT-50478
This commit is contained in:
Victor Petukhov
2022-05-23 10:24:40 +02:00
parent 7c38f99cbf
commit fbb2e18bea
2 changed files with 2 additions and 2 deletions
@@ -202,7 +202,7 @@ class JavaTypeEnhancementStateParser(
}
companion object {
private val DEFAULT = JavaTypeEnhancementStateParser(MessageCollector.NONE, KotlinVersion(1, 6, 20))
private val DEFAULT = JavaTypeEnhancementStateParser(MessageCollector.NONE, KotlinVersion(1, 7, 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(1, 6, 20)
configuredKotlinVersion: KotlinVersion = KotlinVersion(1, 7, 20)
): ReportLevel {
configuredReportLevels[annotation]?.let { return it }