diff --git a/drawee/src/main/java/com/facebook/drawee/generic/GenericDraweeHierarchyInflater.java b/drawee/src/main/java/com/facebook/drawee/generic/GenericDraweeHierarchyInflater.java index c8b5fdf434..8d3ecb8cc9 100644 --- a/drawee/src/main/java/com/facebook/drawee/generic/GenericDraweeHierarchyInflater.java +++ b/drawee/src/main/java/com/facebook/drawee/generic/GenericDraweeHierarchyInflater.java @@ -20,6 +20,7 @@ import com.facebook.drawee.R; import com.facebook.drawee.drawable.AutoRotateDrawable; import static com.facebook.drawee.drawable.ScalingUtils.ScaleType; +import com.facebook.infer.annotation.ReturnsOwnership; /** * Inflater for the {@code GenericDraweeHierarchy}. @@ -207,10 +208,11 @@ public static GenericDraweeHierarchyBuilder updateBuilder( roundBottomRight ? roundedCornerRadius : 0, roundBottomLeft ? roundedCornerRadius : 0); } - + return builder; } + @ReturnsOwnership private static RoundingParams getRoundingParams(GenericDraweeHierarchyBuilder builder) { if (builder.getRoundingParams() == null) { builder.setRoundingParams(new RoundingParams());