diff --git a/jkube-kit/watcher/standard/src/main/java/org/eclipse/jkube/watcher/standard/PodExecutor.java b/jkube-kit/watcher/standard/src/main/java/org/eclipse/jkube/watcher/standard/PodExecutor.java index 77b00941d1..7fb07b4546 100644 --- a/jkube-kit/watcher/standard/src/main/java/org/eclipse/jkube/watcher/standard/PodExecutor.java +++ b/jkube-kit/watcher/standard/src/main/java/org/eclipse/jkube/watcher/standard/PodExecutor.java @@ -71,7 +71,7 @@ void uploadChangedFilesToPod(Collection resources, File changedFile void executeCommandInPod(Collection resources, String command) throws InterruptedException, WatchException, IOException { final KubernetesClient client = watcherContext.getJKubeServiceHub().getClient(); try ( - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream() ) { final String namespace = watcherContext.getNamespace(); final ExecListenerLatch latch = new ExecListenerLatch();