Skip to content

Commit

Permalink
Fixed 'JdbcRowSetImpl is internal proprietary API and may be removed …
Browse files Browse the repository at this point in the history
…in a future release' warning
  • Loading branch information
ok2c committed Sep 27, 2020
1 parent 594e5fc commit 9bc49cc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
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;
Expand All @@ -49,8 +50,6 @@
import org.junit.Before;
import org.junit.Test;

import com.sun.rowset.JdbcRowSetImpl;

public class TestByteArrayCacheEntrySerializer {

private ByteArrayCacheEntrySerializer impl;
Expand Down Expand Up @@ -239,11 +238,11 @@ private static void assertIsAllowedClassNameFalse(final String className) {
}

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();
}
Expand Down

0 comments on commit 9bc49cc

Please sign in to comment.