diff --git a/java/com/engflow/notificationqueue/Client.java b/java/com/engflow/notificationqueue/Client.java index ee792bf8..63a3459b 100644 --- a/java/com/engflow/notificationqueue/Client.java +++ b/java/com/engflow/notificationqueue/Client.java @@ -60,9 +60,8 @@ public static void main(String[] args) throws Exception { } catch (IllegalStateException e) { System.err.println("Unable to open channel to " + args[0].split("=")[1]); throw new IllegalStateException(e); - } catch (IOException e) { - throw new IOException(e); } + try { final Metadata header = new Metadata(); Metadata.Key userKey = @@ -216,8 +215,6 @@ private static ManagedChannel createChannel( builder.sslContext(contextBuilder.build()); } catch (SSLException e) { throw new IllegalStateException(e); - } catch (IOException e) { - throw new IOException(e); } } return builder.build();