From 49de915881eca5a35c9bac2f355c9d6e481874d4 Mon Sep 17 00:00:00 2001 From: Ant00000ny Date: Mon, 5 Aug 2024 15:45:12 +0800 Subject: [PATCH] Fix checkstyle violation --- .../generator/language/kotlin/KotlinSourceCodeWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initializr-generator/src/main/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriter.java b/initializr-generator/src/main/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriter.java index c17d262d8f..b9c86753ff 100644 --- a/initializr-generator/src/main/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriter.java +++ b/initializr-generator/src/main/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriter.java @@ -77,7 +77,7 @@ public void writeTo(SourceStructure structure, KotlinSourceCode sourceCode) thro private static String escapeKotlinKeywords(String packageName) { return Arrays.stream(packageName.split("\\.")) - .map(segment -> KOTLIN_HARD_KEYWORDS.contains(segment) ? "`" + segment + "`" : segment) + .map((segment) -> KOTLIN_HARD_KEYWORDS.contains(segment) ? "`" + segment + "`" : segment) .collect(Collectors.joining(".")); }