From 165218890f7ed27678af47e7ace4408032f6161f Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Tue, 24 Jul 2018 19:12:37 +0300 Subject: [PATCH] Fix max value components for KotlinVersion --- .../idea/configuration/outdatedBundledCompilerNotification.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt index d7c8cb17446..74fb2e628e4 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt @@ -181,7 +181,7 @@ private fun createKotlinVersion(languageVersion: LanguageVersion): KotlinVersion private fun createKotlinVersion(versionStr: String): KotlinVersion? { if (versionStr == "@snapshot@") { - return KotlinVersion(Int.MAX_VALUE, Int.MAX_VALUE, 0) + return KotlinVersion(KotlinVersion.MAX_COMPONENT_VALUE, KotlinVersion.MAX_COMPONENT_VALUE, 0) } val regex = """(\d+)\.(\d+).*""".toRegex()