Skip to content

Commit 15b251d

Browse files
committed
Merge branch '6.2.x'
# Conflicts: # framework-platform/framework-platform.gradle
2 parents 91d0ebe + 70a1b2f commit 15b251d

File tree

5 files changed

+37
-36
lines changed

5 files changed

+37
-36
lines changed

buildSrc/src/main/java/org/springframework/build/CheckstyleConventions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void apply(Project project) {
5050
project.getPlugins().apply(CheckstylePlugin.class);
5151
project.getTasks().withType(Checkstyle.class).forEach(checkstyle -> checkstyle.getMaxHeapSize().set("1g"));
5252
CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class);
53-
checkstyle.setToolVersion("10.21.2");
53+
checkstyle.setToolVersion("10.21.4");
5454
checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));
5555
String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();
5656
DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();

framework-platform/framework-platform.gradle

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ javaPlatform {
77
}
88

99
dependencies {
10-
api(platform("com.fasterxml.jackson:jackson-bom:2.18.2"))
10+
api(platform("com.fasterxml.jackson:jackson-bom:2.18.3"))
1111
api(platform("io.micrometer:micrometer-bom:1.14.4"))
12-
api(platform("io.netty:netty-bom:4.1.118.Final"))
12+
api(platform("io.netty:netty-bom:4.1.119.Final"))
1313
api(platform("io.projectreactor:reactor-bom:2024.0.3"))
1414
api(platform("io.rsocket:rsocket-bom:1.1.5"))
15-
api(platform("org.apache.groovy:groovy-bom:4.0.24"))
15+
api(platform("org.apache.groovy:groovy-bom:4.0.26"))
1616
api(platform("org.apache.logging.log4j:log4j-bom:3.0.0-beta3"))
1717
api(platform("org.assertj:assertj-bom:3.27.3"))
1818
api(platform("org.eclipse.jetty:jetty-bom:12.1.0.alpha1"))
1919
api(platform("org.eclipse.jetty.ee11:jetty-ee11-bom:12.1.0.alpha1"))
2020
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.10.1"))
2121
api(platform("org.jetbrains.kotlinx:kotlinx-serialization-bom:1.8.0"))
2222
api(platform("org.junit:junit-bom:5.12.0"))
23-
api(platform("org.mockito:mockito-bom:5.15.2"))
23+
api(platform("org.mockito:mockito-bom:5.16.0"))
2424

2525
constraints {
2626
api("com.fasterxml:aalto-xml:1.3.2")
2727
api("com.fasterxml.woodstox:woodstox-core:6.7.0")
28-
api("com.github.ben-manes.caffeine:caffeine:3.1.8")
28+
api("com.github.ben-manes.caffeine:caffeine:3.2.0")
2929
api("com.github.librepdf:openpdf:1.3.43")
3030
api("com.google.code.findbugs:findbugs:3.0.1")
3131
api("com.google.code.findbugs:jsr305:3.0.2")
32-
api("com.google.code.gson:gson:2.11.0")
33-
api("com.google.protobuf:protobuf-java-util:4.29.3")
32+
api("com.google.code.gson:gson:2.12.1")
33+
api("com.google.protobuf:protobuf-java-util:4.30.0")
3434
api("com.h2database:h2:2.3.232")
3535
api("com.jayway.jsonpath:json-path:2.9.0")
3636
api("com.networknt:json-schema-validator:1.5.3")
@@ -41,7 +41,7 @@ dependencies {
4141
api("com.sun.xml.bind:jaxb-core:3.0.2")
4242
api("com.sun.xml.bind:jaxb-impl:3.0.2")
4343
api("com.sun.xml.bind:jaxb-xjc:3.0.2")
44-
api("com.thoughtworks.qdox:qdox:2.1.0")
44+
api("com.thoughtworks.qdox:qdox:2.2.0")
4545
api("com.thoughtworks.xstream:xstream:1.4.21")
4646
api("commons-io:commons-io:2.15.0")
4747
api("commons-logging:commons-logging:1.3.4")
@@ -97,8 +97,8 @@ dependencies {
9797
api("org.apache.derby:derby:10.16.1.1")
9898
api("org.apache.derby:derbyclient:10.16.1.1")
9999
api("org.apache.derby:derbytools:10.16.1.1")
100-
api("org.apache.httpcomponents.client5:httpclient5:5.4.1")
101-
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.3.1")
100+
api("org.apache.httpcomponents.client5:httpclient5:5.4.2")
101+
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.3.3")
102102
api("org.apache.poi:poi-ooxml:5.2.5")
103103
api("org.apache.tomcat.embed:tomcat-embed-core:11.0.1")
104104
api("org.apache.tomcat.embed:tomcat-embed-websocket:11.0.1")
@@ -107,43 +107,43 @@ dependencies {
107107
api("org.aspectj:aspectjrt:1.9.22.1")
108108
api("org.aspectj:aspectjtools:1.9.22.1")
109109
api("org.aspectj:aspectjweaver:1.9.22.1")
110-
api("org.awaitility:awaitility:4.2.2")
110+
api("org.awaitility:awaitility:4.3.0")
111111
api("org.bouncycastle:bcpkix-jdk18on:1.72")
112112
api("org.codehaus.jettison:jettison:1.5.4")
113113
api("org.crac:crac:1.4.0")
114114
api("org.dom4j:dom4j:2.1.4")
115-
api("org.easymock:easymock:5.4.0")
115+
api("org.easymock:easymock:5.5.0")
116116
api("org.eclipse.angus:angus-mail:2.0.3")
117-
api("org.eclipse.jetty:jetty-reactive-httpclient:4.0.8")
117+
api("org.eclipse.jetty:jetty-reactive-httpclient:4.0.9")
118118
api("org.eclipse.persistence:org.eclipse.persistence.jpa:5.0.0-B04")
119119
api("org.eclipse:yasson:3.0.4")
120120
api("org.ehcache:ehcache:3.10.8")
121121
api("org.ehcache:jcache:1.0.1")
122-
api("org.freemarker:freemarker:2.3.33")
122+
api("org.freemarker:freemarker:2.3.34")
123123
api("org.glassfish.external:opendmk_jmxremote_optional_jar:1.0-b01-ea")
124124
api("org.glassfish:jakarta.el:4.0.2")
125125
api("org.graalvm.sdk:graal-sdk:22.3.1")
126126
api("org.hamcrest:hamcrest:2.2")
127127
api("org.hibernate.orm:hibernate-core:7.0.0.Beta3")
128128
api("org.hibernate.validator:hibernate-validator:9.0.0.CR1")
129129
api("org.hsqldb:hsqldb:2.7.4")
130-
api("org.htmlunit:htmlunit:4.6.0")
130+
api("org.htmlunit:htmlunit:4.10.0")
131131
api("org.javamoney:moneta:1.4.4")
132-
api("org.jruby:jruby:9.4.9.0")
132+
api("org.jruby:jruby:9.4.12.0")
133133
api("org.jspecify:jspecify:1.0.0")
134134
api("org.junit.support:testng-engine:1.0.5")
135135
api("org.mozilla:rhino:1.7.15")
136136
api("org.ogce:xpp3:1.1.6")
137-
api("org.python:jython-standalone:2.7.3")
137+
api("org.python:jython-standalone:2.7.4")
138138
api("org.quartz-scheduler:quartz:2.3.2")
139-
api("org.seleniumhq.selenium:htmlunit3-driver:4.26.0")
140-
api("org.seleniumhq.selenium:selenium-java:4.26.0")
139+
api("org.seleniumhq.selenium:htmlunit3-driver:4.29.0")
140+
api("org.seleniumhq.selenium:selenium-java:4.29.0")
141141
api("org.skyscreamer:jsonassert:2.0-rc1")
142142
api("org.testng:testng:7.11.0")
143143
api("org.webjars:underscorejs:1.8.3")
144-
api("org.webjars:webjars-locator-lite:1.0.0")
144+
api("org.webjars:webjars-locator-lite:1.1.0")
145145
api("org.xmlunit:xmlunit-assertj:2.10.0")
146146
api("org.xmlunit:xmlunit-matchers:2.10.0")
147-
api("org.yaml:snakeyaml:2.3")
147+
api("org.yaml:snakeyaml:2.4")
148148
}
149149
}

spring-web/src/main/java/org/springframework/http/server/reactive/JettyCoreHttpHandlerAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -43,6 +43,7 @@ public JettyCoreHttpHandlerAdapter(HttpHandler httpHandler) {
4343
this.httpHandler = httpHandler;
4444
}
4545

46+
4647
public void setDataBufferFactory(JettyDataBufferFactory dataBufferFactory) {
4748
Assert.notNull(dataBufferFactory, "DataBufferFactory must not be null");
4849
this.dataBufferFactory = dataBufferFactory;

spring-web/src/main/java/org/springframework/http/server/reactive/JettyCoreServerHttpRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -61,6 +61,7 @@ public JettyCoreServerHttpRequest(Request request, JettyDataBufferFactory dataBu
6161
this.request = request;
6262
}
6363

64+
6465
@Override
6566
protected MultiValueMap<String, HttpCookie> initCookies() {
6667
List<org.eclipse.jetty.http.HttpCookie> httpCookies = Request.getCookies(this.request);

spring-web/src/main/java/org/springframework/http/server/reactive/JettyCoreServerHttpResponse.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -59,10 +59,10 @@ public JettyCoreServerHttpResponse(Response response, JettyDataBufferFactory dat
5959
super(dataBufferFactory, new HttpHeaders(new JettyHeadersAdapter(response.getHeaders())));
6060
this.response = response;
6161

62-
// remove all existing cookies from the response and add them to the cookie map, to be added back later
63-
for (ListIterator<HttpField> i = this.response.getHeaders().listIterator(); i.hasNext(); ) {
64-
HttpField f = i.next();
65-
if (f instanceof HttpCookieUtils.SetCookieHttpField setCookieHttpField) {
62+
// Remove all existing cookies from the response and add them to the cookie map, to be added back later
63+
for (ListIterator<HttpField> it = this.response.getHeaders().listIterator(); it.hasNext();) {
64+
HttpField field = it.next();
65+
if (field instanceof HttpCookieUtils.SetCookieHttpField setCookieHttpField) {
6666
HttpCookie httpCookie = setCookieHttpField.getHttpCookie();
6767
ResponseCookie responseCookie = ResponseCookie.from(httpCookie.getName(), httpCookie.getValue())
6868
.httpOnly(httpCookie.isHttpOnly())
@@ -72,8 +72,8 @@ public JettyCoreServerHttpResponse(Response response, JettyDataBufferFactory dat
7272
.secure(httpCookie.isSecure())
7373
.partitioned(httpCookie.isPartitioned())
7474
.build();
75-
this.addCookie(responseCookie);
76-
i.remove();
75+
addCookie(responseCookie);
76+
it.remove();
7777
}
7878
}
7979
}
@@ -94,7 +94,9 @@ protected Mono<Void> writeAndFlushWithInternal(Publisher<? extends Publisher<? e
9494
@Override
9595
protected void applyStatusCode() {
9696
HttpStatusCode status = getStatusCode();
97-
this.response.setStatus(status == null ? 0 : status.value());
97+
if (status != null){
98+
this.response.setStatus(status.value());
99+
}
98100
}
99101

100102
@Override
@@ -103,7 +105,7 @@ protected void applyHeaders() {
103105

104106
@Override
105107
protected void applyCookies() {
106-
this.getCookies().values().stream()
108+
getCookies().values().stream()
107109
.flatMap(List::stream)
108110
.forEach(cookie -> Response.addCookie(this.response, new ResponseHttpCookie(cookie)));
109111
}
@@ -165,12 +167,10 @@ private static class ResponseHttpCookie implements org.eclipse.jetty.http.HttpCo
165167

166168
private final ResponseCookie responseCookie;
167169

168-
169170
ResponseHttpCookie(ResponseCookie responseCookie) {
170171
this.responseCookie = responseCookie;
171172
}
172173

173-
174174
@Override
175175
public String getName() {
176176
return this.responseCookie.getName();
@@ -231,7 +231,6 @@ public boolean isPartitioned() {
231231
public Map<String, String> getAttributes() {
232232
return Collections.emptyMap();
233233
}
234-
235234
}
236235

237236
}

0 commit comments

Comments
 (0)