E41D Re-design of the TimeOutDuration and WithTimeout. Use java.time.Duration instead of java.util.concurrent.TimeUnit · Issue #742 · appium/java-client · GitHub
[go: up one dir, main page]

Skip to content

Re-design of the TimeOutDuration and WithTimeout. Use java.time.Duration instead of java.util.concurrent.TimeUnit #742

@TikhomirovSergey

Description

@TikhomirovSergey

Description

  • mark old methods and parameters of the annotation @Deprecated

  • add get/set methods to the TimeOutDuration. These methods should get and set an instance of 'java.time.Duration'

  • WithTimeout should have a parameter of the java.time.temporal.ChronoUnit

Details

Java 8 is more powerful than 7. Also I think it is more correct way to use the native and general java.time package instead of more specifical java.util.concurrent in our case.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0