deprecate hasTargets (#252)

hasTargets has the potential to allow users to inadvertantly create NPEs.
This commit is contained in:
Matt
2021-02-23 15:07:31 -05:00
committed by GitHub
parent 71ee03a531
commit b653fc7db1
2 changed files with 7 additions and 0 deletions

View File

@@ -115,6 +115,10 @@ class PhotonCamera {
/**
* Returns whether the latest target result has targets.
* This method is deprecated; {@link PhotonPipelineResult#hasTargets()} should
* be used instead.
* @deprecated This method should be replaced with {@link
* PhotonPipelineResult#hasTargets()}
* @return Whether the latest target result has targets.
*/
bool HasTargets() const { return GetLatestResult().HasTargets(); }