Skip to content

Commit 9b7451e

Browse files
committed
Merge branch '3.5.x' into 4.0.x
Closes gh-48622
2 parents 4d78969 + acdbe04 commit 9b7451e

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/transport/HttpClientTransportTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ void shouldReturnErrorsAndMessage() throws IOException {
332332
}
333333

334334
@Test
335-
void shouldReturnErrorsAndConentIfProxyAuthError() throws IOException {
335+
void shouldReturnContentIfProxyAuthError() throws IOException {
336336
givenClientWillReturnResponse();
337337
given(this.entity.getContent()).willReturn(getClass().getResourceAsStream("proxy-error.txt"));
338338
given(this.response.getCode()).willReturn(HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED);
339339
assertThatExceptionOfType(DockerEngineException.class).isThrownBy(() -> this.http.get(this.uri))
340340
.satisfies((ex) -> {
341341
assertThat(ex.getErrors()).isNull();
342342
assertThat(ex.getResponseMessage()).isNull();
343-
assertThat(ex.getMessage()).contains("Some kind of procy auth problem!");
343+
assertThat(ex.getMessage()).contains("Some kind of proxy auth problem!");
344344
});
345345
}
346346

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Some kind of procy auth problem!
1+
Some kind of proxy auth problem!
22

core/spring-boot/src/main/java/org/springframework/boot/json/JsonWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void applyingPathFilter(Predicate<MemberPath> predicate) {
307307
}
308308

309309
/**
310-
* Add the a {@link NameProcessor} to be applied when the JSON is written.
310+
* Add a {@link NameProcessor} to be applied when the JSON is written.
311311
* @param nameProcessor the name processor to add
312312
*/
313313
public void applyingNameProcessor(NameProcessor nameProcessor) {
@@ -316,7 +316,7 @@ public void applyingNameProcessor(NameProcessor nameProcessor) {
316316
}
317317

318318
/**
319-
* Add the a {@link ValueProcessor} to be applied when the JSON is written.
319+
* Add a {@link ValueProcessor} to be applied when the JSON is written.
320320
* @param valueProcessor the value processor to add
321321
*/
322322
public void applyingValueProcessor(ValueProcessor<?> valueProcessor) {

module/spring-boot-cache/src/main/java/org/springframework/boot/cache/autoconfigure/CacheCondition.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class CacheCondition extends SpringBootCondition {
4141
@Override
4242
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
4343
Assert.isInstanceOf(AnnotationMetadata.class, metadata);
44-
return extracted(context, (AnnotationMetadata) metadata);
44+
return getOutcome(context, (AnnotationMetadata) metadata);
4545
}
4646

47-
private ConditionOutcome extracted(ConditionContext context, AnnotationMetadata metadata) {
47+
private ConditionOutcome getOutcome(ConditionContext context, AnnotationMetadata metadata) {
4848
String sourceClass = metadata.getClassName();
4949
ConditionMessage.Builder message = ConditionMessage.forCondition("Cache", sourceClass);
5050
Environment environment = context.getEnvironment();
@@ -53,7 +53,7 @@ private ConditionOutcome extracted(ConditionContext context, AnnotationMetadata
5353
if (!specified.isBound()) {
5454
return ConditionOutcome.match(message.because("automatic cache type"));
5555
}
56-
CacheType required = CacheConfigurations.getType(metadata.getClassName());
56+
CacheType required = CacheConfigurations.getType(sourceClass);
5757
if (specified.get() == required) {
5858
return ConditionOutcome.match(message.because(specified.get() + " cache type"));
5959
}

module/spring-boot-data-redis/src/main/java/org/springframework/boot/data/redis/autoconfigure/PropertiesDataRedisConnectionDetails.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ public Standalone getStandalone() {
102102
return DataRedisUrl.of(this.properties.getUrl());
103103
}
104104

105-
private List<Node> asNodes(@Nullable List<String> nodes) {
105+
private static List<Node> asNodes(@Nullable List<String> nodes) {
106106
if (nodes == null) {
107107
return Collections.emptyList();
108108
}
109-
return nodes.stream().map(this::asNode).toList();
109+
return nodes.stream().map(PropertiesDataRedisConnectionDetails::asNode).toList();
110110
}
111111

112-
private Node asNode(String node) {
112+
private static Node asNode(String node) {
113113
int portSeparatorIndex = node.lastIndexOf(':');
114114
String host = node.substring(0, portSeparatorIndex);
115115
int port = Integer.parseInt(node.substring(portSeparatorIndex + 1));
@@ -119,7 +119,7 @@ private Node asNode(String node) {
119119
/**
120120
* {@link Cluster} implementation backed by properties.
121121
*/
122-
private class PropertiesCluster implements Cluster {
122+
private static class PropertiesCluster implements Cluster {
123123

124124
private final List<Node> nodes;
125125

@@ -137,7 +137,7 @@ public List<Node> getNodes() {
137137
/**
138138
* {@link MasterReplica} implementation backed by properties.
139139
*/
140-
private class PropertiesMasterReplica implements MasterReplica {
140+
private static class PropertiesMasterReplica implements MasterReplica {
141141

142142
private final List<Node> nodes;
143143

@@ -155,7 +155,7 @@ public List<Node> getNodes() {
155155
/**
156156
* {@link Sentinel} implementation backed by properties.
157157
*/
158-
private class PropertiesSentinel implements Sentinel {
158+
private static class PropertiesSentinel implements Sentinel {
159159

160160
private final int database;
161161

module/spring-boot-elasticsearch/src/main/java/org/springframework/boot/elasticsearch/autoconfigure/ElasticsearchConnectionDetails.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public interface ElasticsearchConnectionDetails extends ConnectionDetails {
5858
}
5959

6060
/**
61-
* APIKey for authentication with Elasticsearch.
61+
* API key for authentication with Elasticsearch.
6262
* @return the API key for authentication with Elasticsearch or {@code null}
6363
*/
6464
default @Nullable String getApiKey() {

module/spring-boot-elasticsearch/src/main/java/org/springframework/boot/elasticsearch/autoconfigure/ElasticsearchRestClientConfigurations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Rest5ClientBuilder elasticsearchRestClientBuilder(ElasticsearchConnectionDetails
105105
.toArray(HttpHost[]::new));
106106
if (connectionDetails.getApiKey() != null) {
107107
builder.setDefaultHeaders(
108-
new Header[] { new BasicHeader("Authorization", "ApiKey " + connectionDetails.getApiKey()), });
108+
new Header[] { new BasicHeader("Authorization", "ApiKey " + connectionDetails.getApiKey()) });
109109
}
110110
builder.setHttpClientConfigCallback((httpClientBuilder) -> builderCustomizers.orderedStream()
111111
.forEach((customizer) -> customizer.customize(httpClientBuilder)));

module/spring-boot-health/src/test/java/org/springframework/boot/health/autoconfigure/actuate/endpoint/AvailabilityProbesAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void probesWhenNoActuatorDependencyDoesNotAddBeans() {
6060
}
6161

6262
@Test
63-
void probesWhenPropertyDisabledAddsNotBeans() {
63+
void probesWhenPropertyDisabledDoesNotAddBeans() {
6464
this.contextRunner.withPropertyValues("management.endpoint.health.probes.enabled=false")
6565
.run(this::doesNotHaveProbeBeans);
6666
}

module/spring-boot-mongodb/src/test/java/org/springframework/boot/mongodb/autoconfigure/MongoAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void configuresCredentialsFromUriPropertyWithAuthDatabase() {
233233
}
234234

235235
@Test
236-
void configureUUidRepresentation() {
236+
void configureUuidRepresentation() {
237237
this.contextRunner.withPropertyValues("spring.mongodb.representation.uuid=standard")
238238
.run((context) -> assertThat(getSettings(context).getUuidRepresentation())
239239
.isEqualTo(UuidRepresentation.STANDARD));

module/spring-boot-mongodb/src/test/java/org/springframework/boot/mongodb/autoconfigure/MongoPropertiesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
class MongoPropertiesTests {
3434

3535
@Test
36-
void defaultUUidRepresentationIsAlignedWithSpringData() {
36+
void defaultUuidRepresentationIsAlignedWithSpringData() {
3737
UuidRepresentation springDataDefault = springDataDefaultUuidRepresentation();
3838
UuidRepresentation springBootDefault = new MongoProperties().getRepresentation().getUuid();
3939
assertThat(springBootDefault).isEqualTo(springDataDefault);

0 commit comments

Comments
 (0)