summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-01-24 13:25:22 -0800
committer Andreas Gampe <agampe@google.com> 2018-01-24 13:25:22 -0800
commit8272fe83e08e62da398c9d18bd0eefa3c5167f10 (patch)
tree3002a8cf53d0efde3e936c220de97fee69069693
parent2a8c24be18dfc3d7cb3f405bee898613b23a212e (diff)
BitmapDrawable: Suppress errorprone warning
Suppress a warning for constructor-chaining not using all parameters. Bug: 72451126 Test: m javac-check RUN_ERROR_PRONE=true Change-Id: Ie47dec119ec578b79d866d9c5041bb7b68eac146
-rw-r--r--graphics/java/android/graphics/drawable/BitmapDrawable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/BitmapDrawable.java b/graphics/java/android/graphics/drawable/BitmapDrawable.java
index e3740e3cf284..7ad062a6f6f9 100644
--- a/graphics/java/android/graphics/drawable/BitmapDrawable.java
+++ b/graphics/java/android/graphics/drawable/BitmapDrawable.java
@@ -163,7 +163,7 @@ public class BitmapDrawable extends Drawable {
/**
* Create a drawable by opening a given file path and decoding the bitmap.
*/
- @SuppressWarnings("unused")
+ @SuppressWarnings({ "unused", "ChainingConstructorIgnoresParameter" })
public BitmapDrawable(Resources res, String filepath) {
this(new BitmapState(BitmapFactory.decodeFile(filepath)), null);
mBitmapState.mTargetDensity = mTargetDensity;
@@ -188,7 +188,7 @@ public class BitmapDrawable extends Drawable {
/**
* Create a drawable by decoding a bitmap from the given input stream.
*/
- @SuppressWarnings("unused")
+ @SuppressWarnings({ "unused", "ChainingConstructorIgnoresParameter" })
public BitmapDrawable(Resources res, java.io.InputStream is) {
this(new BitmapState(BitmapFactory.decodeStream(is)), null);
mBitmapState.mTargetDensity = mTargetDensity;