Objects: Collapse catch branches.

This commit is contained in:
Andreas Schildbach 2019-10-26 10:26:59 +02:00
parent 297e2d8712
commit 50f3b21490

View file

@ -37,9 +37,7 @@ public class Objects {
public static Object deserialize(final byte[] bytes) {
try {
return new ObjectInputStream(new ByteArrayInputStream(bytes)).readObject();
} catch (final ClassNotFoundException x) {
throw new RuntimeException(x);
} catch (final IOException x) {
} catch (final ClassNotFoundException | IOException x) {
throw new RuntimeException(x);
}
}