File tree Expand file tree Collapse file tree
drawee/src/main/java/com/facebook/drawee/drawable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,16 +303,15 @@ public DrawableParent getDrawableParentForIndex(int index) {
303303
304304 private DrawableParent createDrawableParentForIndex (final int index ) {
305305 return new DrawableParent () {
306+ @ Nullable
306307 @ Override
307- // NULLSAFE_FIXME[Inconsistent Subclass Parameter Annotation]
308- public Drawable setDrawable (Drawable newDrawable ) {
309- // NULLSAFE_FIXME[Return Not Nullable]
308+ public Drawable setDrawable (@ Nullable Drawable newDrawable ) {
310309 return ArrayDrawable .this .setDrawable (index , newDrawable );
311310 }
312311
312+ @ Nullable
313313 @ Override
314314 public Drawable getDrawable () {
315- // NULLSAFE_FIXME[Return Not Nullable]
316315 return ArrayDrawable .this .getDrawable (index );
317316 }
318317 };
Original file line number Diff line number Diff line change 55 * LICENSE file in the root directory of this source tree.
66 */
77
8- package com .facebook .drawee .drawable ;
8+ package com.facebook.drawee.drawable
99
10- import android .graphics .drawable .Drawable ;
11- import com .facebook .infer .annotation .Nullsafe ;
12- import javax .annotation .Nullable ;
10+ import android.graphics.drawable.Drawable
1311
1412/* * A drawable parent that has a single child. */
15- @ Nullsafe (Nullsafe .Mode .LOCAL )
16- public interface DrawableParent {
13+ interface DrawableParent {
1714
1815 /* *
1916 * Sets the new child drawable.
2017 *
2118 * @param newDrawable a new child drawable to set
2219 * @return the old child drawable
2320 */
24- @ Nullable
25- Drawable setDrawable (@ Nullable Drawable newDrawable );
21+ fun setDrawable (newDrawable : Drawable ? ): Drawable ?
2622
2723 /* *
2824 * Gets the child drawable.
2925 *
3026 * @return the current child drawable
3127 */
32- @ Nullable
33- Drawable getDrawable ();
28+ val drawable: Drawable ?
3429}
You can’t perform that action at this time.
0 commit comments