diff --git a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/PluginServiceFactory.java b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/PluginServiceFactory.java index 6437f88be7..85bfeffb27 100644 --- a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/PluginServiceFactory.java +++ b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/PluginServiceFactory.java @@ -112,7 +112,7 @@ private void readServiceDefinitionFromUrl(Map extractorMap, private synchronized void createOrRemoveService(Map serviceMap, String line) throws ReflectiveOperationException { - if (line.length() > 0 && !COMMENT_LINE_PATTERN.matcher(line).matches()) { + if (!line.isEmpty() && !COMMENT_LINE_PATTERN.matcher(line).matches()) { ServiceEntry entry = new ServiceEntry(line); if (entry.isRemove()) { // Removing is a bit complex since we need to find out