From b82567ddf32ccc30d60c016ab23f6da1431c01d0 Mon Sep 17 00:00:00 2001 From: David Walluck Date: Wed, 26 Aug 2026 10:53:37 -0400 Subject: [PATCH] Fix `close()` inside `try`-with-resources in `NilTest` --- rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java b/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java index c4d3de7..f9db6cd 100644 --- a/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java +++ b/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java @@ -37,7 +37,7 @@ public void serializationTest() throws IOException, ClassNotFoundException { out.writeObject( Nil.NIL_VALUE ); - out.close(); + out.flush(); try ( ByteArrayInputStream bin = new ByteArrayInputStream( bout.toByteArray() ); ObjectInputStream in = new ObjectInputStream( bin ) ) {