Skip to content

Commit c26bf87

Browse files
sbrannenjhoeller
authored andcommitted
Clean up warnings related to forthcoming removals in Tomcat 9
(cherry picked from commit b521aa8)
1 parent 15d3e8c commit c26bf87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-websocket/src/test/java/org/springframework/web/socket/TomcatWebSocketTestServer.java

Lines changed: 3 additions & 3 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-2016 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.
@@ -95,9 +95,9 @@ public int getPort() {
9595
public void deployConfig(WebApplicationContext wac, Filter... filters) {
9696
Assert.state(this.port != -1, "setup() was never called.");
9797
this.context = this.tomcatServer.addContext("", System.getProperty("java.io.tmpdir"));
98-
this.context.addApplicationListener(WsContextListener.class.getName());
98+
this.context.addApplicationListener(WsContextListener.class.getName());
9999
Tomcat.addServlet(this.context, "dispatcherServlet", new DispatcherServlet(wac)).setAsyncSupported(true);
100-
this.context.addServletMapping("/", "dispatcherServlet");
100+
this.context.addServletMappingDecoded("/", "dispatcherServlet");
101101
for (Filter filter : filters) {
102102
FilterDef filterDef = new FilterDef();
103103
filterDef.setFilterName(filter.getClass().getName());

0 commit comments

Comments
 (0)