[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    [httpcomponents-client] branch master updated: Fixed 'JdbcRowSetImpl is internal proprietary API and
From:       olegk () apache ! org
Date:       2020-09-27 10:22:46
Message-ID: 160120216613.16956.12910433438810677607 () gitbox ! apache ! org
[Download RAW message or body]

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

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/master by this push:
     new 9bc49cc  Fixed 'JdbcRowSetImpl is internal proprietary API and may be \
removed in a future release' warning 9bc49cc is described below

commit 9bc49cc43929e7654ac7ced6122582fcf37ad54d
Author: Oleg Kalnichevski <olegk@apache.org>
AuthorDate: Sat Sep 19 13:06:32 2020 +0200

    Fixed 'JdbcRowSetImpl is internal proprietary API and may be removed in a future \
                release' warning
---
 .../client5/http/impl/cache/TestByteArrayCacheEntrySerializer.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/httpclient5-cache/src/test/java/org/apache/hc/client5/http/impl/cache/TestByteArrayCacheEntrySerializer.java \
b/httpclient5-cache/src/test/java/org/apache/hc/client5/http/impl/cache/TestByteArrayCacheEntrySerializer.java
 index 17cf8d9..ccdedf9 100644
--- a/httpclient5-cache/src/test/java/org/apache/hc/client5/http/impl/cache/TestByteArrayCacheEntrySerializer.java
                
+++ b/httpclient5-cache/src/test/java/org/apache/hc/client5/http/impl/cache/TestByteArrayCacheEntrySerializer.java
 @@ -34,6 +34,7 @@ import static org.junit.Assert.assertTrue;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.ObjectOutputStream;
+import java.math.BigDecimal;
 import java.nio.charset.StandardCharsets;
 import java.util.Date;
 import java.util.HashMap;
@@ -49,8 +50,6 @@ import org.apache.hc.core5.http.message.StatusLine;
 import org.junit.Before;
 import org.junit.Test;
 
-import com.sun.rowset.JdbcRowSetImpl;
-
 public class TestByteArrayCacheEntrySerializer {
 
     private ByteArrayCacheEntrySerializer impl;
@@ -239,11 +238,11 @@ public class TestByteArrayCacheEntrySerializer {
     }
 
     private byte[] serializeProhibitedObject() throws IOException {
-        final JdbcRowSetImpl jdbcRowSet = new JdbcRowSetImpl();
+        final BigDecimal bigDecimal = new BigDecimal("1000.00");
         final ByteArrayOutputStream baos = new ByteArrayOutputStream();
         final ObjectOutputStream oos = new ObjectOutputStream(baos);
         try {
-            oos.writeObject(jdbcRowSet);
+            oos.writeObject(bigDecimal);
         } finally {
             oos.close();
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic