Use java.time.Duration to represent time deltas instead of elementary types by mykola-mokhnach · Pull Request #611 · appium/java-client
Change list
Replace timeout/duration arguments where possible with java.time.Duration type, which has been introduced in Java 8.. This gives us better control over time conversion and helps to avoid time unit conversion issues in general.
All the existing methods, that have replacements, were marked as deprecated.
Types of changes
- No changes in production code.
- Bugfix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)