From 6ce418fa3df3ec812aae21c9a68cc199174b2f5c Mon Sep 17 00:00:00 2001 From: leulad Date: Tue, 2 Jul 2024 21:27:23 +0300 Subject: [PATCH] fix: changed to conventional Object.isEmpty() from Object.length()==0 Signed-off-by: leulad --- .../java/org/eclipse/jkube/kit/common/util/CommandLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }