commit | 7e4b8e9d595e45baa9d87cdb8282f02759e73abc | [log] [tgz] |
---|---|---|
author | Tor Norbye <tnorbye@google.com> | Wed May 30 14:54:39 2012 -0700 |
committer | Tor Norbye <tnorbye@google.com> | Wed May 30 17:25:18 2012 -0700 |
tree | 2da5fccd6c1e00c972c69323e3cf10df2e5ab264 | |
parent | 5ee7da2ae31dcbe781ed81c07f31b31d0a0a7d7f [diff] |
Fix nullness annotations Eclipse 4.2 includes analysis support for @Nullable and @NonNull annotations. However, it requires these annotations to be *repeated* on every single method implementing or overriding a superclass or interface method (!). This changeset basically applies the quickfixes to inline these annotations. It also changes the retention of our nullness annotations from source to class, since without this Eclipse believes that a @NonNull annotation downstream is a redefinition of a @Nullable annotation. Finally, the null analysis revealed a dozen or so places where the nullness annotation was either wrong, or some null checking on parameters or return values needed to be done. Change-Id: I43b4e56e2d025a8a4c92a8873f55c13cdbc4c1cb