File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
fj-core/src/main/java/org/fugerit/java/core/io Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package org .fugerit .java .core .io ;
2
2
3
3
import lombok .extern .slf4j .Slf4j ;
4
+ import org .fugerit .java .core .io .helper .HelperIOException ;
4
5
5
6
import java .io .*;
6
7
@@ -17,10 +18,8 @@ public static Object fullSerializationTest( Object value ) throws IOException {
17
18
public static Object deserialize ( byte [] data ) throws IOException {
18
19
Object res = null ;
19
20
try ( ObjectInputStream ois = new ObjectInputStream ( new ByteArrayInputStream ( data ) ) ) {
20
- res = ois .readObject ();
21
+ res = HelperIOException . get ( () -> ois .readObject () );
21
22
log .info ( "deserializeTest, read object : {}" , res );
22
- } catch (ClassNotFoundException e ) {
23
- throw new IOException ( e .toString (), e );
24
23
}
25
24
return res ;
26
25
}
You can’t perform that action at this time.
0 commit comments