Start building against Spring Framework 7.0.0-M5 snapshots

See gh-1552
This commit is contained in:
Stéphane Nicoll
2025-04-23 11:56:32 +02:00
parent d07c091890
commit e49bfa498b
7 changed files with 4 additions and 35 deletions

View File

@@ -4,4 +4,4 @@ org.gradle.caching=true
org.gradle.parallel=true
compatibilityTestPluginVersion=0.0.3
springFrameworkVersion=6.2.6
springFrameworkVersion=7.0.0-SNAPSHOT

View File

@@ -92,7 +92,7 @@ public class ClientHttpRequestConnection extends AbstractHttpSenderConnection {
@Override
public Iterator<String> getResponseHeaderNames() throws IOException {
return this.response.getHeaders().keySet().iterator();
return this.response.getHeaders().headerNames().iterator();
}
@Override

View File

@@ -21,8 +21,9 @@ import java.net.URI;
import java.net.http.HttpClient;
import java.time.Duration;
import org.jspecify.annotations.Nullable;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.ws.transport.WebServiceConnection;

View File

@@ -48,12 +48,6 @@ import org.springframework.ws.transport.support.WebServiceMessageReceiverObjectS
public class WebServiceMessageReceiverHandlerAdapter extends WebServiceMessageReceiverObjectSupport
implements HandlerAdapter {
@Override
@Deprecated
public long getLastModified(HttpServletRequest request, Object handler) {
return -1L;
}
@Override
public ModelAndView handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
Object handler) throws Exception {

View File

@@ -140,13 +140,6 @@ public class WsdlDefinitionHandlerAdapter extends LocationTransformerObjectSuppo
this.transformSchemaLocations = transformSchemaLocations;
}
@Override
@Deprecated
public long getLastModified(HttpServletRequest request, Object handler) {
Source definitionSource = ((WsdlDefinition) handler).getSource();
return LastModifiedHelper.getLastModified(definitionSource);
}
@Override
public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {

View File

@@ -88,13 +88,6 @@ public class XsdSchemaHandlerAdapter extends LocationTransformerObjectSupport
this.transformSchemaLocations = transformSchemaLocations;
}
@Override
@Deprecated
public long getLastModified(HttpServletRequest request, Object handler) {
Source schemaSource = ((XsdSchema) handler).getSource();
return LastModifiedHelper.getLastModified(schemaSource);
}
@Override
public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {

View File

@@ -57,18 +57,6 @@ class XsdSchemaHandlerAdapterTests {
this.response = new MockHttpServletResponse();
}
@Test
@Deprecated
void getLastModified() throws Exception {
Resource single = new ClassPathResource("single.xsd", getClass());
SimpleXsdSchema schema = new SimpleXsdSchema(single);
schema.afterPropertiesSet();
long lastModified = single.getFile().lastModified();
assertThat(this.adapter.getLastModified(null, schema)).isEqualTo(lastModified);
}
@Test
void handleGet() throws Exception {