Fix common typos and grammatical mistakes

Closes gh-36471
This commit is contained in:
Sam Brannen
2026-03-15 17:05:29 +01:00
parent 17699103dc
commit 5eb0e99d58
25 changed files with 46 additions and 46 deletions
@@ -76,8 +76,8 @@ class HttpHeadersTests {
void writableHttpHeadersUnwrapsMultiple() {
HttpHeaders originalExchangeHeaders = HttpHeaders.readOnlyHttpHeaders(new HttpHeaders());
HttpHeaders firewallHeaders = new HttpHeaders(originalExchangeHeaders);
HttpHeaders writeable = new HttpHeaders(firewallHeaders);
writeable.setContentType(MediaType.APPLICATION_JSON);
HttpHeaders writable = new HttpHeaders(firewallHeaders);
writable.setContentType(MediaType.APPLICATION_JSON);
}
@Test
@@ -843,10 +843,10 @@ class PathPatternTests {
parse("/hotels/{hotel}/booking"))).isEqualTo(1);
assertThat(comparator.compare(
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"),
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"),
parse("/**"))).isEqualTo(-1);
assertThat(comparator.compare(parse("/**"),
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"))).isEqualTo(1);
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"))).isEqualTo(1);
assertThat(comparator.compare(parse("/**"), parse("/**"))).isEqualTo(0);
assertThat(comparator.compare(parse("/hotels/{hotel}"), parse("/hotels/*"))).isEqualTo(-1);
@@ -861,10 +861,10 @@ class PathPatternTests {
// SPR-6741
assertThat(comparator.compare(
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"),
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"),
parse("/hotels/**"))).isEqualTo(-1);
assertThat(comparator.compare(parse("/hotels/**"),
parse("/hotels/{hotel}/bookings/{booking}/cutomers/{customer}"))).isEqualTo(1);
parse("/hotels/{hotel}/bookings/{booking}/customers/{customer}"))).isEqualTo(1);
assertThat(comparator.compare(parse("/hotels/foo/bar/**"),
parse("/hotels/{hotel}"))).isEqualTo(1);
assertThat(comparator.compare(parse("/hotels/{hotel}"),