diff --git a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/JKubeProjectUtil.java b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/JKubeProjectUtil.java index fda55821bc..b83df01692 100644 --- a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/JKubeProjectUtil.java +++ b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/JKubeProjectUtil.java @@ -165,7 +165,7 @@ public static File getFinalOutputArtifact(JavaProject jkubeProject) { public static String createDefaultResourceName(String artifactId, String ... suffixes) { String suffix = StringUtils.join(suffixes, "-"); - String ret = artifactId + (suffix.length() > 0 ? "-" + suffix : ""); + String ret = artifactId + (!suffix.isEmpty() ? "-" + suffix : ""); if (ret.length() > MAX_RESOURCE_NAME_LENGTH) { ret = ret.substring(0, MAX_RESOURCE_NAME_LENGTH); }