diff --git a/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/DockerFileBuilderTest.java b/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/DockerFileBuilderTest.java index 01eb7ecfac..6e74d0c43b 100644 --- a/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/DockerFileBuilderTest.java +++ b/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/DockerFileBuilderTest.java @@ -285,7 +285,7 @@ private static Map dockerfileToMap(String dockerFile) { final Scanner scanner = new Scanner(dockerFile); while (scanner.hasNextLine()) { String line = scanner.nextLine(); - if (line.trim().length() == 0) { + if (line.trim().isEmpty()) { continue; } String[] commandAndArguments = line.trim().split("\\s+", 2);