Load JSR-305 annotations for libraries if it's enabled for any module
#KT-19303 Fixed
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user