Hello
I'm fan of nullness annotations such as defined in JSR 308 and supported by Checker Framework (
http://types.cs.washington.edu/checker-framework/).
I use them in my Android application projects and find them very powerful and useful for verifying the correctness of source code and discovering
errors. Now I'm curious about whether developers of AOSP use a kind of nullness annotations in the source code of Android or have plans to use them
in future?
1) Do developers of AOSP use nullness annotations in the source code of Android?
2) Are there any plans to add nullness annotations in future? If yes, this will be type annotations as defined in JSR 308 or other?
3) If there is a contribution which adds type annotations to Android framework classes without changing any runtime properties, will it be accepted?
Important thing to say about such contributions is that type annotations can be written in comments, so that nothing really changes in runtime
and the source code can still be compiled by Java 7 compiler.
I believe that if the source code of Android is provided with type annotations, not only this would improve quality of the Android platform itself,
but also all Android application developers could benefit from this, because information about types from Android Framework can be used to verify
every Android application by Checker Framework to be free of nullness kind of errors.
Thanks