Add -Xsupport-compatqual-checker-framework-annotations flag
It's implemented through Jsr305State while it's not related to jsr-305 becasue currently it's the most convenient way to introduce the flag. Probably, it's worth renaming Jsr305State to something more abstract like NullabilityAnnotationsConfiguration #KT-21982 Fixed
This commit is contained in:
+4
-1
@@ -47,7 +47,10 @@ object IDELanguageSettingsProvider : LanguageSettingsProvider {
|
||||
val settings = KotlinFacetSettingsProvider.getInstance(project).getSettings(module) ?: continue
|
||||
val compilerArguments = settings.mergedCompilerArguments as? K2JVMCompilerArguments ?: continue
|
||||
|
||||
val jsr305State = Jsr305Parser(MessageCollector.NONE).parse(compilerArguments.jsr305)
|
||||
val jsr305State = Jsr305Parser(MessageCollector.NONE).parse(
|
||||
compilerArguments.jsr305,
|
||||
compilerArguments.supportCompatqualCheckerFrameworkAnnotations
|
||||
)
|
||||
map.put(AnalysisFlag.jsr305, jsr305State)
|
||||
}
|
||||
return map
|
||||
|
||||
Reference in New Issue
Block a user