Skip to content

Commit e1cf203

Browse files
committed
Merge branch '6.1.x'
# Conflicts: # framework-platform/framework-platform.gradle
2 parents 5529366 + 63486bf commit e1cf203

File tree

6 files changed

+27
-25
lines changed

6 files changed

+27
-25
lines changed

framework-platform/framework-platform.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ javaPlatform {
99
dependencies {
1010
api(platform("com.fasterxml.jackson:jackson-bom:2.15.4"))
1111
api(platform("io.micrometer:micrometer-bom:1.14.0-M2"))
12-
api(platform("io.netty:netty-bom:4.1.111.Final"))
12+
api(platform("io.netty:netty-bom:4.1.112.Final"))
1313
api(platform("io.netty:netty5-bom:5.0.0.Alpha5"))
1414
api(platform("io.projectreactor:reactor-bom:2024.0.0-M5"))
1515
api(platform("io.rsocket:rsocket-bom:1.1.3"))
1616
api(platform("org.apache.groovy:groovy-bom:4.0.22"))
1717
api(platform("org.apache.logging.log4j:log4j-bom:2.21.1"))
1818
api(platform("org.assertj:assertj-bom:3.26.0"))
19-
api(platform("org.eclipse.jetty:jetty-bom:12.0.11"))
20-
api(platform("org.eclipse.jetty.ee10:jetty-ee10-bom:12.0.11"))
19+
api(platform("org.eclipse.jetty:jetty-bom:12.0.12"))
20+
api(platform("org.eclipse.jetty.ee10:jetty-ee10-bom:12.0.12"))
2121
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.8.1"))
2222
api(platform("org.jetbrains.kotlinx:kotlinx-serialization-bom:1.6.3"))
2323
api(platform("org.junit:junit-bom:5.10.3"))
@@ -56,9 +56,9 @@ dependencies {
5656
api("io.r2dbc:r2dbc-spi:1.0.0.RELEASE")
5757
api("io.reactivex.rxjava3:rxjava:3.1.8")
5858
api("io.smallrye.reactive:mutiny:1.10.0")
59-
api("io.undertow:undertow-core:2.3.14.Final")
60-
api("io.undertow:undertow-servlet:2.3.14.Final")
61-
api("io.undertow:undertow-websockets-jsr:2.3.14.Final")
59+
api("io.undertow:undertow-core:2.3.15.Final")
60+
api("io.undertow:undertow-servlet:2.3.15.Final")
61+
api("io.undertow:undertow-websockets-jsr:2.3.15.Final")
6262
api("io.vavr:vavr:0.10.4")
6363
api("jakarta.activation:jakarta.activation-api:2.0.1")
6464
api("jakarta.annotation:jakarta.annotation-api:2.0.0")
@@ -103,10 +103,10 @@ dependencies {
103103
api("org.apache.httpcomponents.client5:httpclient5:5.3.1")
104104
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.2.5")
105105
api("org.apache.poi:poi-ooxml:5.2.5")
106-
api("org.apache.tomcat.embed:tomcat-embed-core:10.1.25")
107-
api("org.apache.tomcat.embed:tomcat-embed-websocket:10.1.25")
108-
api("org.apache.tomcat:tomcat-util:10.1.25")
109-
api("org.apache.tomcat:tomcat-websocket:10.1.25")
106+
api("org.apache.tomcat.embed:tomcat-embed-core:10.1.28")
107+
api("org.apache.tomcat.embed:tomcat-embed-websocket:10.1.28")
108+
api("org.apache.tomcat:tomcat-util:10.1.28")
109+
api("org.apache.tomcat:tomcat-websocket:10.1.28")
110110
api("org.aspectj:aspectjrt:1.9.22.1")
111111
api("org.aspectj:aspectjtools:1.9.22.1")
112112
api("org.aspectj:aspectjweaver:1.9.22.1")

spring-beans/src/main/java/org/springframework/beans/propertyeditors/LocaleEditor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -30,13 +30,13 @@
3030
* @author Juergen Hoeller
3131
* @since 26.05.2003
3232
* @see java.util.Locale
33-
* @see org.springframework.util.StringUtils#parseLocaleString
33+
* @see org.springframework.util.StringUtils#parseLocale
3434
*/
3535
public class LocaleEditor extends PropertyEditorSupport {
3636

3737
@Override
3838
public void setAsText(String text) {
39-
setValue(StringUtils.parseLocaleString(text));
39+
setValue(StringUtils.parseLocale(text));
4040
}
4141

4242
@Override

spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ void localeEditor() {
648648
assertThat(localeEditor.getValue()).isEqualTo(Locale.CANADA);
649649
assertThat(localeEditor.getAsText()).isEqualTo("en_CA");
650650

651+
localeEditor = new LocaleEditor();
652+
localeEditor.setAsText("zh-Hans");
653+
assertThat(localeEditor.getValue()).isEqualTo(Locale.forLanguageTag("zh-Hans"));
654+
651655
localeEditor = new LocaleEditor();
652656
assertThat(localeEditor.getAsText()).isEmpty();
653657
}

spring-core/src/main/java/org/springframework/aot/hint/BindingReflectionHintsRegistrar.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public class BindingReflectionHintsRegistrar {
5555

5656
private static final String JACKSON_ANNOTATION = "com.fasterxml.jackson.annotation.JacksonAnnotation";
5757

58-
private static final boolean jacksonAnnotationPresent = ClassUtils.isPresent(JACKSON_ANNOTATION,
59-
BindingReflectionHintsRegistrar.class.getClassLoader());
58+
private static final boolean jacksonAnnotationPresent =
59+
ClassUtils.isPresent(JACKSON_ANNOTATION, BindingReflectionHintsRegistrar.class.getClassLoader());
60+
6061

6162
/**
6263
* Register the necessary reflection hints to bind the specified types.
@@ -96,12 +97,10 @@ private void registerReflectionHints(ReflectionHints hints, Set<Type> seen, Type
9697
}
9798
}
9899
if (clazz.isEnum()) {
99-
typeHint.withMembers(
100-
MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS,
100+
typeHint.withMembers(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS,
101101
MemberCategory.INVOKE_PUBLIC_METHODS);
102102
}
103-
typeHint.withMembers(
104-
MemberCategory.DECLARED_FIELDS,
103+
typeHint.withMembers(MemberCategory.DECLARED_FIELDS,
105104
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
106105
for (Method method : clazz.getMethods()) {
107106
String methodName = method.getName();
@@ -138,8 +137,7 @@ private void registerRecordHints(ReflectionHints hints, Set<Type> seen, Method m
138137
}
139138

140139
private void registerPropertyHints(ReflectionHints hints, Set<Type> seen, @Nullable Method method, int parameterIndex) {
141-
if (method != null && method.getDeclaringClass() != Object.class &&
142-
method.getDeclaringClass() != Enum.class) {
140+
if (method != null && method.getDeclaringClass() != Object.class && method.getDeclaringClass() != Enum.class) {
143141
hints.registerMethod(method, ExecutableMode.INVOKE);
144142
MethodParameter methodParameter = MethodParameter.forExecutable(method, parameterIndex);
145143
Type methodParameterType = methodParameter.getGenericParameterType();
@@ -214,6 +212,7 @@ private void registerHintsForClassAttributes(ReflectionHints hints, MergedAnnota
214212
});
215213
}
216214

215+
217216
/**
218217
* Inner class to avoid a hard dependency on Kotlin at runtime.
219218
*/

spring-web/src/main/java/org/springframework/http/CacheControl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -393,7 +393,7 @@ private String toHeaderValue() {
393393
}
394394

395395
private void appendDirective(StringBuilder builder, String value) {
396-
if (builder.length() > 0) {
396+
if (!builder.isEmpty()) {
397397
builder.append(", ");
398398
}
399399
builder.append(value);

spring-web/src/main/java/org/springframework/web/context/request/async/WebAsyncManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ public void registerDeferredResultInterceptors(DeferredResultProcessingIntercept
245245
}
246246

247247
/**
248-
* Mark the {@link WebAsyncManager} as wrapping a
249-
* multipart async request.
248+
* Mark the {@link WebAsyncManager} as wrapping a multipart async request.
250249
* @since 6.1.12
251250
*/
252251
public void setMultipartRequestParsed(boolean isMultipart) {

0 commit comments

Comments
 (0)