Load JSR-305 annotations for libraries if it's enabled for any module

#KT-19303 Fixed
This commit is contained in:
Dmitry Jemerov
2017-08-01 19:38:04 +02:00
parent 4ca8d3d6cf
commit b423d58a14
12 changed files with 153 additions and 23 deletions
@@ -166,7 +166,7 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
override fun configureAnalysisFlags(): MutableMap<AnalysisFlag<*>, Any> {
val result = super.configureAnalysisFlags()
Jsr305State.values().firstOrNull { it.description == jsr305GlobalReportLevel }?.let {
Jsr305State.findByDescription(jsr305GlobalReportLevel)?.let {
result.put(AnalysisFlag.loadJsr305Annotations, it)
}
return result