From 4c8114497a4ec5c0f3f0a3c259ad92f988cf4c18 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sat, 26 Oct 2019 10:26:59 +0200 Subject: [PATCH] Objects: Collapse catch branches. --- oeffi/src/de/schildbach/oeffi/util/Objects.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/oeffi/src/de/schildbach/oeffi/util/Objects.java b/oeffi/src/de/schildbach/oeffi/util/Objects.java index abb0049..3347132 100644 --- a/oeffi/src/de/schildbach/oeffi/util/Objects.java +++ b/oeffi/src/de/schildbach/oeffi/util/Objects.java @@ -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); } }