Home
last modified time | relevance | path

Searched refs:nullabilityAnnotations (Results 1 – 2 of 2) sorted by relevance

/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DNullabilityTesting.kt88 val nullabilityAnnotations = modifiers.annotations().filter { it.isNullnessAnnotation() } in assertHasNonNullNullability() constant
90 true -> assertThat(nullabilityAnnotations.single().isNonNull()).isTrue() in assertHasNonNullNullability()
91 false -> assertThat(nullabilityAnnotations).isEmpty() in assertHasNonNullNullability()
105 val nullabilityAnnotations = modifiers.annotations().filter { it.isNullnessAnnotation() } in assertHasNullableNullability() constant
107 true -> assertThat(nullabilityAnnotations.single().isNullable()).isTrue() in assertHasNullableNullability()
108 false -> assertThat(nullabilityAnnotations).isEmpty() in assertHasNullableNullability()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt142 val nullabilityAnnotations = annotations.filter(this::isAnyNullabilityAnnotation) in <lambda>() constant
143 if (nullabilityAnnotations.size > 1) { in <lambda>()
147 checkItemNullability(type, nullabilityAnnotations.firstOrNull(), method, label) in <lambda>()