You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use lambda expression in the Fluent Wait example (SeleniumHQ#1245)
When we use the code of the previous example, Sonar Lint says :
Anonymous inner classes containing only one method
should become lambdas (java:S1604)
Before Java 8, the only way to partially support closures in Java
was by using anonymous inner classes. But the syntax
of anonymous classes may seem unwieldy and unclear.
With Java 8, most uses of anonymous inner classes should be replaced
by lambdas to highly increase the readability of the source code.
Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc.
This example uses a lambda function.
FixesSeleniumHQ#1243
[deploy site]
0 commit comments