diff options
author | Tor Norbye <tnorbye@google.com> | 2015-03-02 10:57:08 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2015-03-07 20:49:18 -0800 |
commit | 1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc (patch) | |
tree | c9b3f05a238831065220463db9ba2a052e329f9b /graphics | |
parent | c615c6fc9caca76cd96998f86e1f1e6393aeadbb (diff) | |
download | frameworks_base-1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc.zip frameworks_base-1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc.tar.gz frameworks_base-1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc.tar.bz2 |
Annotate return values with @CheckReturn
Change-Id: Icd8fb6adb591ccd7f35f2336ae716b198abf69c5
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Bitmap.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index aae11cd..e2f7799 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -16,6 +16,7 @@ package android.graphics; +import android.annotation.CheckResult; import android.annotation.ColorInt; import android.annotation.NonNull; import android.os.Parcel; @@ -1501,6 +1502,7 @@ public final class Bitmap implements Parcelable { * * @return new bitmap containing the alpha channel of the original bitmap. */ + @CheckResult public Bitmap extractAlpha() { return extractAlpha(null, null); } @@ -1530,6 +1532,7 @@ public final class Bitmap implements Parcelable { * Canvas.drawBitmap(), where the color(s) will be taken from the * paint that is passed to the draw call. */ + @CheckResult public Bitmap extractAlpha(Paint paint, int[] offsetXY) { checkRecycled("Can't extractAlpha on a recycled bitmap"); long nativePaint = paint != null ? paint.getNativeInstance() : 0; |