This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git
The following commit(s) were added to refs/heads/master by this push:
new a4c5b96 Fixing usage of ObjectOutputStream decorated with
ByteArrayOutputStream (#28)
a4c5b96 is described below
commit a4c5b96d1a61ea44858208e194488f0248b9587e
Author: emopers <[email protected]>
AuthorDate: Fri Mar 29 20:19:07 2019 -0500
Fixing usage of ObjectOutputStream decorated with ByteArrayOutputStream
(#28)
---
.../org/apache/commons/dbcp2/datasources/TestPerUserPoolDataSource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/test/java/org/apache/commons/dbcp2/datasources/TestPerUserPoolDataSource.java
b/src/test/java/org/apache/commons/dbcp2/datasources/TestPerUserPoolDataSource.java
index 52caa25..fe4984b 100644
---
a/src/test/java/org/apache/commons/dbcp2/datasources/TestPerUserPoolDataSource.java
+++
b/src/test/java/org/apache/commons/dbcp2/datasources/TestPerUserPoolDataSource.java
@@ -426,8 +426,8 @@ public class TestPerUserPoolDataSource extends
TestConnectionPool {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final ObjectOutputStream out = new ObjectOutputStream(baos);
out.writeObject(ds);
- final byte[] b = baos.toByteArray();
out.close();
+ final byte[] b = baos.toByteArray();
final ByteArrayInputStream bais = new ByteArrayInputStream(b);
final ObjectInputStream in = new ObjectInputStream(bais);