getRoundingParams returns ownership
@@ -20,6 +20,7 @@ import android.util.AttributeSet;
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}.
@@ -211,6 +212,7 @@ public class GenericDraweeHierarchyInflater {
return builder;
}
+ @ReturnsOwnership
private static RoundingParams getRoundingParams(GenericDraweeHierarchyBuilder builder) {
if (builder.getRoundingParams() == null) {
builder.setRoundingParams(new RoundingParams());
