Skip to content

Commit fa0ce0b

Browse files
committed
Fix spotless:check issues
Signed-off-by: Daniel Arteaga Barba <darteaga@vmware.com>
1 parent 2b106e4 commit fa0ce0b

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlExec.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,18 @@ public Integer execute() throws KubectlException {
7575
}
7676
}
7777

78-
protected static Thread copyAsync(InputStream in, OutputStream out, Consumer<Throwable> onUnhandledError) {
78+
protected static Thread copyAsync(
79+
InputStream in, OutputStream out, Consumer<Throwable> onUnhandledError) {
7980
Thread t =
8081
new Thread(
8182
new Runnable() {
8283
public void run() {
8384
try {
8485
Streams.copy(in, out);
8586
} catch (IOException ex) {
86-
Optional.ofNullable(onUnhandledError).orElse(Throwable::printStackTrace).accept(ex);
87+
Optional.ofNullable(onUnhandledError)
88+
.orElse(Throwable::printStackTrace)
89+
.accept(ex);
8790
}
8891
}
8992
});

extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlPortForward.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ public void run() {
112112
t1.join();
113113
t2.join();
114114
} catch (InterruptedException | IOException ex) {
115-
Optional.ofNullable(onUnhandledError).orElse(Throwable::printStackTrace).accept(ex);
115+
Optional.ofNullable(onUnhandledError)
116+
.orElse(Throwable::printStackTrace)
117+
.accept(ex);
116118
}
117119
}
118120
}

0 commit comments

Comments
 (0)