Objects: Collapse catch branches.

This commit is contained in:
Andreas Schildbach 2019-10-26 10:26:59 +02:00
parent 2beddb8807
commit 4c8114497a

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);
}
}