Skip to content

Commit a3f5cbc

Browse files
committed
Polishing
1 parent 7a84a48 commit a3f5cbc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationServletContainerTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.boot.autoconfigure.jersey;
1818

19+
import java.nio.charset.Charset;
20+
1921
import javax.ws.rs.GET;
2022
import javax.ws.rs.Path;
2123

@@ -105,7 +107,7 @@ protected void postProcessContext(Context context) {
105107
jerseyServlet.setServlet(new ServletContainer());
106108
jerseyServlet.setOverridable(false);
107109
context.addChild(jerseyServlet);
108-
String pattern = UDecoder.URLDecode("/*", "UTF-8");
110+
String pattern = UDecoder.URLDecode("/*", Charset.forName("UTF-8"));
109111
context.addServletMappingDecoded(pattern, servletName);
110112
}
111113

0 commit comments

Comments
 (0)