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());
ObjectInputStream si = new ObjectInputStream(bis);
return si.readObject();
} catch (IOException ioe) {
return null;
} catch (ClassNotFoundException cnfe) {
return null;
} catch (Exception e) {
throw new RuntimeException(e);
}
}