Skip to content

Commit 1b39b62

Browse files
authored
Merge pull request #356 from spring-projects/master
[pull] master from spring-projects:master
2 parents d5cdc06 + 19115d1 commit 1b39b62

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ public Object sanitize(String key, Object value) {
101101
}
102102

103103
private Object sanitizeUri(Object value) {
104-
Matcher matcher = URI_USERINFO_PATTERN.matcher(value.toString());
104+
String uriString = value.toString();
105+
Matcher matcher = URI_USERINFO_PATTERN.matcher(uriString);
105106
String password = matcher.matches() ? matcher.group(1) : null;
106107
if (password != null) {
107-
return StringUtils.replace(value.toString(), ":" + password + "@", ":******@");
108+
return StringUtils.replace(uriString, ":" + password + "@", ":******@");
108109
}
109110
return value;
110111
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void flywayJavaMigrations() {
275275
.withUserConfiguration(EmbeddedDataSourceConfiguration.class, FlywayJavaMigrationsConfiguration.class)
276276
.run((context) -> {
277277
Flyway flyway = context.getBean(Flyway.class);
278-
assertThat(flyway.getConfiguration().getJavaMigrations().length).isEqualTo(2);
278+
assertThat(flyway.getConfiguration().getJavaMigrations()).hasSize(2);
279279
});
280280
}
281281

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ void autoConfigurationShouldConfigureResourceServerUsingJwkSetUriAndIssuerUri()
342342
.getField(reactiveJwtDecoder, "jwtValidator");
343343
Collection<OAuth2TokenValidator<Jwt>> tokenValidators = (Collection<OAuth2TokenValidator<Jwt>>) ReflectionTestUtils
344344
.getField(jwtValidator, "tokenValidators");
345-
assertThat(tokenValidators.stream()).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
345+
assertThat(tokenValidators).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
346346
});
347347
}
348348

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void autoConfigurationShouldConfigureResourceServerUsingJwkSetUriAndIssuerUri()
345345
.getField(jwtDecoder, "jwtValidator");
346346
Collection<OAuth2TokenValidator<Jwt>> tokenValidators = (Collection<OAuth2TokenValidator<Jwt>>) ReflectionTestUtils
347347
.getField(jwtValidator, "tokenValidators");
348-
assertThat(tokenValidators.stream()).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
348+
assertThat(tokenValidators).hasAtLeastOneElementOfType(JwtIssuerValidator.class);
349349
});
350350
}
351351

spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ include::{code-examples}/web/client/RestTemplateProxyCustomizationExample.java[t
12471247
=== Configure the TcpClient used by a Reactor Netty-based WebClient
12481248
When Reactor Netty is on the classpath a Reactor Netty-based `WebClient` is auto-configured.
12491249
To customize the client's handling of network connections, provide a `ClientHttpConnector` bean.
1250-
The following example configures a 60 second read timeout and adds a `ReadTimeoutHandler`:
1250+
The following example configures a 60 second connect timeout and adds a `ReadTimeoutHandler`:
12511251

12521252
[source,java,indent=0]
12531253
----

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ For example, consider the following config in a file:
727727
password: "secret"
728728
----
729729

730-
If you run the application with the arguments `--spring.profiles.active=dev" you might expect `security.user.password` to be set to "`secret`", but this is not the case.
730+
If you run the application with the argument `--spring.profiles.active=dev` you might expect `security.user.password` to be set to "`secret`", but this is not the case.
731731

732732
The nested document will be filtered because the main file is named `application-dev.yml`.
733733
It is already considered to be profile-specific, and nested documents will be ignored.
@@ -1675,13 +1675,10 @@ Spring Boot includes the following pre-defined logging groups that can be used o
16751675
| Name | Loggers
16761676

16771677
| web
1678-
| `org.springframework.core.codec`, `org.springframework.http`, `org.springframework.web`
1678+
| `org.springframework.core.codec`, `org.springframework.http`, `org.springframework.web`, `org.springframework.boot.actuate.endpoint.web`, `org.springframework.boot.web.servlet.ServletContextInitializerBeans`
16791679

16801680
| sql
16811681
| `org.springframework.jdbc.core`, `org.hibernate.SQL`, `org.jooq.tools.LoggerListener`
1682-
1683-
| sql
1684-
| `org.springframework.jdbc.core`, `org.hibernate.SQL`
16851682
|===
16861683

16871684

0 commit comments

Comments
 (0)