MATH-1340

Avoid exception swallowing.
This commit is contained in:
Gilles 2016-03-26 02:21:15 +01:00
parent 7a8dc00b8b
commit 96f2b16b3e
1 changed files with 2 additions and 4 deletions

View File

@ -119,10 +119,8 @@ public class TestUtils {
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
ObjectInputStream si = new ObjectInputStream(bis); ObjectInputStream si = new ObjectInputStream(bis);
return si.readObject(); return si.readObject();
} catch (IOException ioe) { } catch (Exception e) {
return null; throw new RuntimeException(e);
} catch (ClassNotFoundException cnfe) {
return null;
} }
} }