This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.4.x-fixes by this push:
new 49e3c62e53 Fix JDK-11 API usage (post-merge issue)
49e3c62e53 is described below
commit 49e3c62e53571fa68ca4d7f0551995b2972374f4
Author: Andriy Redko <[email protected]>
AuthorDate: Tue Apr 18 14:13:58 2023 -0400
Fix JDK-11 API usage (post-merge issue)
(cherry picked from commit 834717b0be80c7d403f321053ba54116658f01e9)
---
.../test/java/org/apache/cxf/common/gzip/GZIPInInterceptorTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/core/src/test/java/org/apache/cxf/common/gzip/GZIPInInterceptorTest.java
b/core/src/test/java/org/apache/cxf/common/gzip/GZIPInInterceptorTest.java
index 1e00d1f09a..e216b8a7d0 100644
--- a/core/src/test/java/org/apache/cxf/common/gzip/GZIPInInterceptorTest.java
+++ b/core/src/test/java/org/apache/cxf/common/gzip/GZIPInInterceptorTest.java
@@ -19,6 +19,7 @@
package org.apache.cxf.common.gzip;
+import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Collections;
import java.util.List;
@@ -38,7 +39,7 @@ import static org.junit.Assert.assertThat;
public class GZIPInInterceptorTest {
private Message message;
-
+
@Before
public void setUp() {
final Map<String, List<String>> heeaders = new
TreeMap<>(String.CASE_INSENSITIVE_ORDER);
@@ -51,7 +52,7 @@ public class GZIPInInterceptorTest {
@Test
public void testNoContent() {
final GZIPInInterceptor interceptor = new GZIPInInterceptor();
- final InputStream nullInputStream = InputStream.nullInputStream();
+ final InputStream nullInputStream = new ByteArrayInputStream(new
byte[0]);
message.setContent(InputStream.class, nullInputStream);
message.put(Message.RESPONSE_CODE, 204);