native int for time was replaced with Duration:
[ENHANCEMENT] [REFACTOR] Methods which were representing time deltas instead of elementary types became Deprecated. Methods which use java.time.Duration are suugested to be used. #611
The list of classes and methods which were removed:
AppiumDriver#swipe(int, int, int, int, int)
AppiumDriver#pinch(WebElement)
AppiumDriver#pinch(int, int)
AppiumDriver#zoom(WebElement)
AppiumDriver#zoom(int, int)
AppiumDriver#tap(int, WebElement, int)
AppiumDriver#tap(int, int, int, int)
AppiumDriver#swipe(int, int, int, int, int)
MobileElement#swipe(SwipeElementDirection, int)
MobileElement#swipe(SwipeElementDirection, int, int, int)
MobileElement#zoom()
MobileElement#pinch()
MobileElement#tap(int, int)
You should use TouchAction and MultiTouchAction. Release notes for java client in here https://github.com/appium/java-client/releases.