Skip to content

Commit

Permalink
fix: replaced String.length() == 0 with String.isEmpty() in JKubeProj…
Browse files Browse the repository at this point in the history
…ectUtil.java

Signed-off-by: Emily Knott <[email protected]>
  • Loading branch information
eaknott authored Jul 23, 2024
1 parent 15542db commit 0585869
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0585869

Please sign in to comment.