diff --git a/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java b/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java index 011ff5df74..40b6f2d30a 100644 --- a/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java +++ b/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java @@ -114,10 +114,6 @@ public abstract class AbstractParser return message; } catch (InvalidProtocolBufferException e) { throw e; - } catch (IOException e) { - throw new RuntimeException( - "Reading from a ByteString threw an IOException (should " + - "never happen).", e); } } @@ -151,10 +147,6 @@ public abstract class AbstractParser return message; } catch (InvalidProtocolBufferException e) { throw e; - } catch (IOException e) { - throw new RuntimeException( - "Reading from a byte array threw an IOException (should " + - "never happen).", e); } }