You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/10/21 08:36:44 UTC

[tomcat] branch 8.5.x updated: Fix deprecation warning when building with newer versions of Java

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new f18a816fbd Fix deprecation warning when building with newer versions of Java
f18a816fbd is described below

commit f18a816fbd763240e7ce2fe15893ebc54ecf843d
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Oct 21 09:31:29 2022 +0100

    Fix deprecation warning when building with newer versions of Java
---
 test/org/apache/catalina/connector/TestResponse.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/connector/TestResponse.java b/test/org/apache/catalina/connector/TestResponse.java
index 620c532978..14c189c240 100644
--- a/test/org/apache/catalina/connector/TestResponse.java
+++ b/test/org/apache/catalina/connector/TestResponse.java
@@ -646,7 +646,7 @@ public class TestResponse extends TomcatBaseTest {
     private static final String TEXT_ISO_8859_1 = TEXT + ";charset=" + ISO_8859_1;
     private static final String TEXT_UTF_8 = TEXT + ";charset=" + UTF_8;
     private static final String TEXT_UNKNOWN = TEXT + ";charset=" + UNKNOWN;
-    private static final Locale UNDETERMINED = new Locale("und");
+    private static final Locale UNDETERMINED = Locale.forLanguageTag("xxx");
 
     @Test
     public void testSetCharacterEncoding01() {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org