From b924fbbf85687d824d18768be07151cc982fca7a Mon Sep 17 00:00:00 2001 From: Aleksandro Eterverda Date: Wed, 25 Sep 2013 00:20:00 +0400 Subject: [PATCH 1/3] Fixed wrong annotations for android.os.Parcel Parcel.readString() and Parcel.readStrongBinder() were wrongly annotated to return NotNull. In fact they both can return null and this is often used in Android development. --- android-sdk-annotations/android/os/annotations.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/android-sdk-annotations/android/os/annotations.xml b/android-sdk-annotations/android/os/annotations.xml index 243c9871f5d..967291245c0 100644 --- a/android-sdk-annotations/android/os/annotations.xml +++ b/android-sdk-annotations/android/os/annotations.xml @@ -200,9 +200,6 @@ - - - @@ -449,9 +446,6 @@ - - - From 06b9f3d7b9182868206f4c665a74899219d2e7f7 Mon Sep 17 00:00:00 2001 From: Aleksandro Eterverda Date: Wed, 25 Sep 2013 00:32:12 +0400 Subject: [PATCH 2/3] Fixed wrong annotations for android.content.ComponentName ComponentName.getClassName() and ComponentName.getPackageName() cannot return null. Also it's not possible to create ComponentName with null packageName or className --- .../android/content/annotations.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/android-sdk-annotations/android/content/annotations.xml b/android-sdk-annotations/android/content/annotations.xml index 05fb4a96d92..fadb969fb4d 100644 --- a/android-sdk-annotations/android/content/annotations.xml +++ b/android-sdk-annotations/android/content/annotations.xml @@ -758,6 +758,15 @@ + + + + + + + + + @@ -1421,6 +1430,12 @@ + + + + + + From 30bf2c27f6f92a37a369f6bfdaeb60fa3f00d27a Mon Sep 17 00:00:00 2001 From: Aleksandro Eterverda Date: Wed, 25 Sep 2013 01:11:33 +0400 Subject: [PATCH 3/3] Added more annotations for android.os.Message Message.obtain() (all overloaded variants) never return null. --- .../android/os/annotations.xml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/android-sdk-annotations/android/os/annotations.xml b/android-sdk-annotations/android/os/annotations.xml index 967291245c0..a58a95ddaef 100644 --- a/android-sdk-annotations/android/os/annotations.xml +++ b/android-sdk-annotations/android/os/annotations.xml @@ -71,9 +71,33 @@ + + + + + + + + + + + + + + + + + + + + + + + +