Skip to content

[java] Fix FluentWait's sample usage wrt durations#10208

Merged
titusfortner merged 1 commit intoSeleniumHQ:trunkfrom
mureinik:FluentWait-javadoc
Dec 31, 2021
Merged

[java] Fix FluentWait's sample usage wrt durations#10208
titusfortner merged 1 commit intoSeleniumHQ:trunkfrom
mureinik:FluentWait-javadoc

Conversation

@mureinik
Copy link
Copy Markdown
Contributor

Description

Fixes the sample usage of the FluentWait class which currently does not compile.

Motivation and Context

Commit 502301e removed some deprecated methods which used the deprecated TimeUnit class and kept only the overloaded methods that use Java's java.time.Duration class.

However, it missed fixing the sample usage at the beginning of the javadoc that still referred to these methods.
This patch fixes the issue and replaces the method calls in the sample usage with the newer methods that accept a Duration argument.

Types of changes

  • Bug fix (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 change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes. - N/A - documentation change only
  • All new and existing tests passed.

Fixes #10207

Commit 502301e removed some
deprecated methods which used the deprecated TimeUnit class and kept
only the overloaded methods that use Java's java.time.Duration class.

However, it missed fixing the sample usage at the beginning of the
javadoc that still referred to these methods.
This patch fixes the issue and replaces the method calls in the sample
usage with the newer methods that accept a Duration argument.

Fixes SeleniumHQ#10207
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 31, 2021

CLA assistant check
All committers have signed the CLA.

@titusfortner titusfortner merged commit aad7fe4 into SeleniumHQ:trunk Dec 31, 2021
@mureinik mureinik deleted the FluentWait-javadoc branch December 31, 2021 19:39
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
Commit 502301e removed some
deprecated methods which used the deprecated TimeUnit class and kept
only the overloaded methods that use Java's java.time.Duration class.

However, it missed fixing the sample usage at the beginning of the
javadoc that still referred to these methods.
This patch fixes the issue and replaces the method calls in the sample
usage with the newer methods that accept a Duration argument.

Fixes SeleniumHQ#10207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: [java] FluentWait's sample usage refers to methods that have been removed

3 participants