Disable JSR-305 annotations by default, introduce CLI argument
No package annotations are going to be loaded, and TypeQualifierDefault/TypeQualifierNickname are no longer recognized by default. Use the CLI argument "-Xload-jsr305-annotations" to enable this behavior back #KT-10942
This commit is contained in:
@@ -29,7 +29,7 @@ class AnalysisFlag internal constructor(private val name: String) {
|
||||
companion object
|
||||
}
|
||||
|
||||
private operator fun AnalysisFlag.Companion.provideDelegate(instance: Any?, property: KProperty<*>) =
|
||||
private operator fun @Suppress("unused") AnalysisFlag.Companion.provideDelegate(instance: Any?, property: KProperty<*>) =
|
||||
object : ReadOnlyProperty<Any?, AnalysisFlag> {
|
||||
private val flag = AnalysisFlag(property.name)
|
||||
|
||||
@@ -42,4 +42,7 @@ object AnalysisFlags {
|
||||
|
||||
@JvmStatic
|
||||
val multiPlatformDoNotCheckImpl by AnalysisFlag
|
||||
|
||||
@JvmStatic
|
||||
val loadJsr305Annotations by AnalysisFlag
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user