Support configuring of nullability annotations with their report levels through a test directive
This commit is contained in:
+7
@@ -180,4 +180,11 @@ class JavaTypeEnhancementStateParser(private val collector: MessageCollector) {
|
||||
|
||||
return FqName(name) to state
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val DEFAULT = JavaTypeEnhancementStateParser(MessageCollector.NONE)
|
||||
|
||||
fun parsePlainNullabilityAnnotationReportLevels(nullabilityAnnotations: String) =
|
||||
DEFAULT.parseNullabilityAnnotationReportLevels(arrayOf(nullabilityAnnotations)).entries.singleOrNull()?.toPair()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user