From 72c93785008255aff36bc81ad0e41a1750fe9db3 Mon Sep 17 00:00:00 2001 From: Chris Povirk Date: Thu, 1 Jun 2023 14:19:22 -0400 Subject: [PATCH] Fix error message for `-Xjspecify-annotations`. The message currently claims that you can pass the value "disable," but in fact the value it means is "ignore." --- .../cli/common/arguments/JavaTypeEnhancementStateParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/JavaTypeEnhancementStateParser.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/JavaTypeEnhancementStateParser.kt index a91a9b9e0f0..5910299849c 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/JavaTypeEnhancementStateParser.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/JavaTypeEnhancementStateParser.kt @@ -109,7 +109,7 @@ class JavaTypeEnhancementStateParser( if (reportLevel == null) { collector.report( CompilerMessageSeverity.ERROR, - "Unrecognized -Xjspecify-annotations option: $jspecifyState. Possible values are 'disable'/'warn'/'strict'" + "Unrecognized -Xjspecify-annotations option: $jspecifyState. Possible values are 'ignore'/'warn'/'strict'" ) return getReportLevelForAnnotation(JSPECIFY_ANNOTATIONS_PACKAGE, nullabilityAnnotationReportLevels, kotlinVersion) }