From 6ca5629b4f5c72bc66d4b11466f68d1805b25ae9 Mon Sep 17 00:00:00 2001 From: Mohammed Faizan Date: Wed, 7 Aug 2024 18:51:10 +0530 Subject: [PATCH] 'content[i + 1].length() > 0' replaced with '!content[i + 1].isEmpty()' in RegistryAuthConfiguration (3308) --- .../jkube/kit/config/image/build/RegistryAuthConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jkube-kit/config/image/src/main/java/org/eclipse/jkube/kit/config/image/build/RegistryAuthConfiguration.java b/jkube-kit/config/image/src/main/java/org/eclipse/jkube/kit/config/image/build/RegistryAuthConfiguration.java index 4747b0702e..7cddab8980 100644 --- a/jkube-kit/config/image/src/main/java/org/eclipse/jkube/kit/config/image/build/RegistryAuthConfiguration.java +++ b/jkube-kit/config/image/src/main/java/org/eclipse/jkube/kit/config/image/build/RegistryAuthConfiguration.java @@ -53,7 +53,7 @@ public Map toMap() { "email", email }; for (int i = 0; i < content.length; i += 2) { - if (content[i + 1] != null && content[i + 1].length() > 0) { + if (content[i + 1] != null && !content[i + 1].isEmpty()) { authMap.put(content[i], content[i+1]); } }