1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Use parenthesis with single-arg lambdas

Use regular expression search/replace to ensure all single-arg
lambdas have parenthesis. This aligns with the style used in Spring
Boot and ensure that single-arg and multi-arg lambdas are consistent.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-29 18:18:05 -07:00
committed by Rob Winch
parent 01d90c9881
commit 52f20b5281
426 changed files with 1668 additions and 1617 deletions
@@ -117,14 +117,14 @@ public class CasSampleProxyTests {
public void extremelySecurePageWhenReusingTicketThenDisplays() {
this.login.to(this::serviceParam).assertAt().login("rod");
Map<String, String> ptCache = new HashMap<>();
this.extremelySecure.to(url -> url + "?ticket=" + ptCache.computeIfAbsent(url, this::getPt)).assertAt();
this.extremelySecure.to(url -> url + "?ticket=" + ptCache.get(url)).assertAt();
this.extremelySecure.to((url) -> url + "?ticket=" + ptCache.computeIfAbsent(url, this::getPt)).assertAt();
this.extremelySecure.to((url) -> url + "?ticket=" + ptCache.get(url)).assertAt();
}
@Test
public void securePageWhenInvalidTicketThenFails() {
this.login.to(this::serviceParam).assertAt().login("scott");
this.secure.to(url -> url + "?ticket=invalid");
this.secure.to((url) -> url + "?ticket=invalid");
this.unauthorized.assertAt();
}