From 533759d14aeca6c50167cc0b4abb7b9c9a070d90 Mon Sep 17 00:00:00 2001 From: Sam Blackshear Date: Thu, 9 Mar 2017 12:06:21 -0800 Subject: [PATCH] getRoundingParams returns ownership Differential Revision: D4675020 fbshipit-source-id: a58cf8d7f7f0795c30daa11106957365c2339fa5 --- .../drawee/generic/GenericDraweeHierarchyInflater.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());