Use Jsr305State.DEFAULT instead of IGNORE as a default value

This commit is contained in:
Denis Zharkov
2017-09-25 19:05:53 +03:00
parent dd2630e5c6
commit 5b7c766a54
6 changed files with 42 additions and 5 deletions
@@ -44,7 +44,7 @@ object IDELanguageSettingsProvider : LanguageSettingsProvider {
val compilerArguments = settings.mergedCompilerArguments as? K2JVMCompilerArguments ?: continue
val jsr305state = Jsr305State.findByDescription(compilerArguments.jsr305)
if (jsr305state != null && jsr305state != Jsr305State.IGNORE) {
if (jsr305state != null && jsr305state != Jsr305State.DEFAULT) {
map.put(AnalysisFlag.jsr305, jsr305state)
break
}