Home
last modified time | relevance | path

Searched refs:nullness (Results 1 – 9 of 9) sorted by relevance

/tools/metalava/
DREADME.md99 API contract (in particular nullness contracts, as well as parameter names
102 * Support for a "compact" nullness format -- one based on Kotlin's
104 their nullness contract, the signature files would very quickly become
143 not just nullness annotations found in the source code and annotations merged
144 in from external sources, but also inferring whether nullness annotations have
161 nullness, such as attempting to change a nullness contract incompatibly
197 * Metalava can generate reports about nullness annotation coverage (which helps
218 324 methods and fields were missing nullness annotations out of 650 total
219 API references. API nullness coverage is 50%
426 For example, metalava has a feature to mark "newly annotated" nullness
[all …]
DFORMAT.md21 3. This is format v2, but will all nullness annotations replaced by a
34 developers), we'd like to have nullness annotations (as well as some other
58 but in v2 "String" means "String with unknown nullness".
72 @Override etc); only those which are significant for the API, such as nullness
100 explicit nullness, use Kotlin's syntax for nullness. That means that for
101 nullable elements, we add "?" after the type, for unknown nullness we add "!",
303 Note that this isn't just for Kotlin. Just like there are special nullness
430 the nullness as deprecation ones (which are specially supported in v3 via the
443 case of Kotlin code, a special JetBrains nullness annotation), or the one that
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypeItem.kt450 … val nullness = owner?.modifiers?.annotations()?.firstOrNull { it.isNullnessAnnotation() } in getCanonicalText() constant
451 var elementAnnotations = if (nullness != null) { listOf(nullness) } else null in getCanonicalText()
472 …} else if (nullness != null && owner.modifiers.isVarArg() && owner.isKotlin() && type is PsiEllips… in getCanonicalText()
475 val provider = if (nullness.isNonNull()) { in getCanonicalText()
/tools/metalava/src/test/java/com/android/tools/metalava/
DNullnessMigrationTest.kt279 fun `Convert libcore nullness annotations to support`() { in Convert libcore nullness annotations to support()
436 fun `Migrate nullness for type-use annotations`() { in Migrate nullness for type-use annotations()
DCompatibilityCheckTest.kt131 fun `Flag invalid nullness changes`() { in Flag invalid nullness changes()
2117 fun `Implicit nullness`() { in Implicit nullness()
2145 fun `Implicit nullness in compat format`() { in Implicit nullness in compat format()
DAndroidApiChecksTest.kt177 fun `Check Warnings for missing nullness annotations`() { in Check Warnings for missing nullness annotations()
DApiFileTest.kt779 fun `Known nullness`() { in Known nullness()
/tools/metalava/stub-annotations/
DREADME.md28 (5) We've tweaked the nullness annotations to include
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt244 fun `Check other annotations than nullness annotations`() { in <lambda>()