diff --git a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/CommandLine.java b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/CommandLine.java index 63b4780cd6..72abcf73d2 100644 --- a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/CommandLine.java +++ b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/CommandLine.java @@ -25,7 +25,7 @@ public class CommandLine { private CommandLine() { } public static List translateCommandline(String toProcess) { - if (toProcess == null || toProcess.length() == 0) { + if (toProcess == null || toProcess.isEmpty()) { //no command? no string return Collections.emptyList(); }