mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
deprecate hasTargets (#252)
hasTargets has the potential to allow users to inadvertantly create NPEs.
This commit is contained in:
@@ -190,6 +190,9 @@ public class PhotonCamera {
|
||||
/**
|
||||
* Returns whether the latest target result has targets.
|
||||
*
|
||||
* <p>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.
|
||||
*/
|
||||
public boolean hasTargets() {
|
||||
|
||||
Reference in New Issue
Block a user