Skip to content

Commit 96ae03b

Browse files
committed
Merge branch '6.0.x'
2 parents c276e5b + b922165 commit 96ae03b

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ public Collection<InjectedElement> getInjectedElements() {
106106
* @since 6.0.10
107107
*/
108108
public Collection<InjectedElement> getInjectedElements(@Nullable PropertyValues pvs) {
109-
return this.injectedElements.stream()
110-
.filter(candidate -> candidate.shouldInject(pvs)).toList();
109+
return this.injectedElements.stream().filter(candidate -> candidate.shouldInject(pvs)).toList();
111110
}
112111

113112
/**
@@ -117,7 +116,7 @@ public Collection<InjectedElement> getInjectedElements(@Nullable PropertyValues
117116
* @since 5.2.4
118117
*/
119118
protected boolean needsRefresh(Class<?> clazz) {
120-
return this.targetClass != clazz;
119+
return (this.targetClass != clazz);
121120
}
122121

123122
public void checkConfigMembers(RootBeanDefinition beanDefinition) {

spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,6 +50,7 @@ public DefaultDeserializer() {
5050
/**
5151
* Create a {@code DefaultDeserializer} for using an {@link ObjectInputStream}
5252
* with the given {@code ClassLoader}.
53+
* @param classLoader the ClassLoader to use
5354
* @since 4.2.1
5455
* @see ConfigurableObjectInputStream#ConfigurableObjectInputStream(InputStream, ClassLoader)
5556
*/

spring-core/src/main/java/org/springframework/core/serializer/support/DeserializingConverter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
2121
import org.springframework.core.convert.converter.Converter;
2222
import org.springframework.core.serializer.DefaultDeserializer;
2323
import org.springframework.core.serializer.Deserializer;
24+
import org.springframework.lang.Nullable;
2425
import org.springframework.util.Assert;
2526

2627
/**
@@ -50,10 +51,11 @@ public DeserializingConverter() {
5051
/**
5152
* Create a {@code DeserializingConverter} for using an {@link java.io.ObjectInputStream}
5253
* with the given {@code ClassLoader}.
54+
* @param classLoader the ClassLoader to use
5355
* @since 4.2.1
5456
* @see DefaultDeserializer#DefaultDeserializer(ClassLoader)
5557
*/
56-
public DeserializingConverter(ClassLoader classLoader) {
58+
public DeserializingConverter(@Nullable ClassLoader classLoader) {
5759
this.deserializer = new DefaultDeserializer(classLoader);
5860
}
5961

spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,10 @@ default <T> T getAttributeOrDefault(String name, T defaultValue) {
148148
*/
149149
default Mono<Void> cleanupMultipart() {
150150
return getMultipartData()
151-
.onErrorResume(t -> Mono.empty()) // ignore errors reading multipart data
151+
.onErrorResume(t -> Mono.empty()) // ignore errors reading multipart data
152152
.flatMapIterable(Map::values)
153153
.flatMapIterable(Function.identity())
154-
.flatMap(part -> part.delete()
155-
.onErrorResume(ex -> Mono.empty()))
154+
.flatMap(part -> part.delete().onErrorResume(ex -> Mono.empty()))
156155
.then();
157156
}
158157

0 commit comments

Comments
 (0)