Home
last modified time | relevance | path

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

/tools/metalava/
DREADME.md102 API contract (in particular nullness contracts, as well as parameter names
105 * Support for a "compact" nullness format -- one based on Kotlin's
107 their nullness contract, the signature files would very quickly become
146 not just nullness annotations found in the source code and annotations merged
147 in from external sources, but also inferring whether nullness annotations have
164 nullness, such as attempting to change a nullness contract incompatibly
200 * Metalava can generate reports about nullness annotation coverage (which helps
221 324 methods and fields were missing nullness annotations out of 650 total
222 API references. API nullness coverage is 50%
429 For example, metalava has a feature to mark "newly annotated" nullness
[all …]
DFORMAT.md21 3. This is format v2, but with 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.kt457 … val nullness = owner?.modifiers?.annotations()?.firstOrNull { it.isNullnessAnnotation() } in getCanonicalText() constant
458 var elementAnnotations = if (nullness != null) { listOf(nullness) } else null in getCanonicalText()
490 …} else if (nullness != null && owner.modifiers.isVarArg() && owner.isKotlin() && type is PsiEllips… in getCanonicalText()
493 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()
638 fun `Merge nullness annotations in stubs that are not in the API signature file`() { in Merge nullness annotations in stubs that are not in the API signature file()
DCompatibilityCheckTest.kt131 fun `Flag invalid nullness changes`() { in Flag invalid nullness changes()
2222 fun `Implicit nullness`() { in Implicit nullness()
2250 fun `Implicit nullness in compat format`() { in Implicit nullness in compat format()
DAndroidApiChecksTest.kt175 fun `Check Warnings for missing nullness annotations`() { in Check Warnings for missing nullness annotations()
DApiFileTest.kt813 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>()