Skip to content

Commit c57acf0

Browse files
committed
Increased coverage
1 parent 55b25ad commit c57acf0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fj-core/src/main/java/org/fugerit/java/core/io/ObjectIO.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.fugerit.java.core.io;
22

33
import lombok.extern.slf4j.Slf4j;
4+
import org.fugerit.java.core.io.helper.HelperIOException;
45

56
import java.io.*;
67

@@ -17,10 +18,8 @@ public static Object fullSerializationTest( Object value ) throws IOException {
1718
public static Object deserialize( byte[] data ) throws IOException {
1819
Object res = null;
1920
try ( ObjectInputStream ois = new ObjectInputStream( new ByteArrayInputStream( data ) ) ) {
20-
res = ois.readObject();
21+
res = HelperIOException.get( () -> ois.readObject() );
2122
log.info( "deserializeTest, read object : {}", res );
22-
} catch (ClassNotFoundException e) {
23-
throw new IOException( e.toString(), e );
2423
}
2524
return res;
2625
}

0 commit comments

Comments
 (0)