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 03dfc93709..c17d262d8f 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 @@ -16,19 +16,35 @@ package io.spring.initializr.generator.language.kotlin; -import io.spring.initializr.generator.io.IndentingWriter; -import io.spring.initializr.generator.io.IndentingWriterFactory; -import io.spring.initializr.generator.language.*; -import io.spring.initializr.generator.language.CodeBlock.FormattingOptions; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; -import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Locale; +import java.util.Set; import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.Stream; +import io.spring.initializr.generator.io.IndentingWriter; +import io.spring.initializr.generator.io.IndentingWriterFactory; +import io.spring.initializr.generator.language.Annotatable; +import io.spring.initializr.generator.language.Annotation; +import io.spring.initializr.generator.language.ClassName; +import io.spring.initializr.generator.language.CodeBlock; +import io.spring.initializr.generator.language.CodeBlock.FormattingOptions; +import io.spring.initializr.generator.language.CompilationUnit; +import io.spring.initializr.generator.language.Parameter; +import io.spring.initializr.generator.language.SourceCode; +import io.spring.initializr.generator.language.SourceCodeWriter; +import io.spring.initializr.generator.language.SourceStructure; + /** * A {@link SourceCodeWriter} that writes {@link SourceCode} in Kotlin. * diff --git a/initializr-generator/src/test/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriterTests.java b/initializr-generator/src/test/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriterTests.java index 67a7ac5d25..19bf4af83f 100644 --- a/initializr-generator/src/test/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriterTests.java +++ b/initializr-generator/src/test/java/io/spring/initializr/generator/language/kotlin/KotlinSourceCodeWriterTests.java @@ -16,13 +16,6 @@ package io.spring.initializr.generator.language.kotlin; -import io.spring.initializr.generator.io.IndentingWriterFactory; -import io.spring.initializr.generator.language.Annotation.Builder; -import io.spring.initializr.generator.language.*; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.io.TempDir; -import org.springframework.util.StreamUtils; - import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; @@ -34,6 +27,18 @@ import java.util.UUID; import java.util.function.Consumer; +import io.spring.initializr.generator.io.IndentingWriterFactory; +import io.spring.initializr.generator.language.Annotation.Builder; +import io.spring.initializr.generator.language.ClassName; +import io.spring.initializr.generator.language.CodeBlock; +import io.spring.initializr.generator.language.Language; +import io.spring.initializr.generator.language.Parameter; +import io.spring.initializr.generator.language.SourceStructure; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.io.TempDir; + +import org.springframework.util.StreamUtils; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;