Auto strike through is enabled for waitAction() when used along with Release with in press snytax

t.press(driver.findElementByXPath("//android.widget.TextView[@text=‘People Names’]")).waitAction(3000).release().perform();

in the above line, waitAction(3000) has strikethrough (which is not showing here since I copy and pasted), when I mouse over on WaitAction, the recommendations I’m seeing are

  1. Add @supresswarnings ‘Deprecation’ to ‘main()’

  2. configure problem severity

the above line is not running because of this reason, any help greatly appreciated

Can anyone please respond to it???

update to:

new TouchAction((MobileDriver) driver).press(element).waitAction(5000).release().perform();