add a few annotations
@@ -30,6 +30,7 @@ import com.facebook.drawee.components.RetryManager;
import com.facebook.drawee.gestures.GestureDetector;
import com.facebook.drawee.interfaces.DraweeController;
import com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder;
+import com.facebook.infer.annotation.ReturnsOwnership;
/**
* Base implementation for Drawee controller builders.
@@ -437,7 +438,7 @@ public abstract class AbstractDraweeControllerBuilder <
}
/** Concrete builder classes should override this method to return a new controller. */
- protected abstract AbstractDraweeController obtainController();
+ @ReturnsOwnership protected abstract AbstractDraweeController obtainController();
/**
* Concrete builder classes should override this method to return a data source for the request.
