diff --git a/src/test/java/org/apache/commons/math4/TestUtils.java b/src/test/java/org/apache/commons/math4/TestUtils.java index 109e64da9..c6f6c401f 100644 --- a/src/test/java/org/apache/commons/math4/TestUtils.java +++ b/src/test/java/org/apache/commons/math4/TestUtils.java @@ -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); } }