Skip to content

Commit 360634a

Browse files
committed
Remove unnecessary catch and import
1 parent c601e95 commit 360634a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

examples/src/main/java/io/kubernetes/client/examples/ExecExample.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import io.kubernetes.client.Exec;
2020
import io.kubernetes.client.util.Config;
2121
import java.io.IOException;
22-
import java.io.InterruptedIOException;
2322
import java.util.ArrayList;
2423
import java.util.List;
2524

@@ -67,8 +66,6 @@ public static void main(String[] args) throws IOException, ApiException, Interru
6766
public void run() {
6867
try {
6968
ByteStreams.copy(System.in, proc.getOutputStream());
70-
} catch (InterruptedIOException ie) {
71-
// no-op
7269
} catch (IOException ex) {
7370
ex.printStackTrace();
7471
}
@@ -82,8 +79,6 @@ public void run() {
8279
public void run() {
8380
try {
8481
ByteStreams.copy(proc.getInputStream(), System.out);
85-
} catch (InterruptedIOException ie) {
86-
// no-op
8782
} catch (IOException ex) {
8883
ex.printStackTrace();
8984
}

0 commit comments

Comments
 (0)