From 31695806bb36d5195ca7091d2c545cc39699df83 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Wed, 18 Dec 2024 12:12:25 +0100 Subject: [PATCH] Polish --- .../src/main/asciidoc/configuration-guide.adoc | 8 ++++---- .../web/project/MetadataProjectDescriptionCustomizer.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/initializr-docs/src/main/asciidoc/configuration-guide.adoc b/initializr-docs/src/main/asciidoc/configuration-guide.adoc index fa5f843e95..66735454cb 100644 --- a/initializr-docs/src/main/asciidoc/configuration-guide.adoc +++ b/initializr-docs/src/main/asciidoc/configuration-guide.adoc @@ -131,12 +131,12 @@ bean is available for extensions that wish to know if an attribute of the origin Once the description has been customized based on the available ``ProjectDescriptionCustomizer``s, the generator uses a `ProjectAssetGenerator` to generate the project assets. The `initializr-generator` module provides a default -implementation of this interface (``DefaultProjectAssetGenerator`) that generates a +implementation of this interface (`DefaultProjectAssetGenerator`) that generates a directory structure using available `ProjectContributor` beans. -While the default `ProjectAssetGenerator` use the file system and invoke a particular set +While the default `ProjectAssetGenerator` uses the file system and invoke a particular set of components, it is possible to use the same `ProjectGenerator` instance with a custom -implementation that focus on something else entirely. +implementation that focusses on something else entirely. @@ -578,7 +578,7 @@ available development build of the upcoming 2.1.0 release). For the `V2` format, simply `SNAPSHOT`, i.e. `2.1.0-SNAPSHOT`. * `RELEASE` for general availability (e.g. `2.0.0.RELEASE` is 2.0.0 proper) -TIP: snapshots are in a bit special in that scheme as they always represent the "latest +TIP: Snapshots are in a bit special in that scheme as they always represent the "latest state" of a release. `M1` represents the oldest version for a given major, minor and patch revisions, and it can therefore be safely used when referring to the "first" release in that line. diff --git a/initializr-web/src/main/java/io/spring/initializr/web/project/MetadataProjectDescriptionCustomizer.java b/initializr-web/src/main/java/io/spring/initializr/web/project/MetadataProjectDescriptionCustomizer.java index bb6be1de77..bfc767886b 100644 --- a/initializr-web/src/main/java/io/spring/initializr/web/project/MetadataProjectDescriptionCustomizer.java +++ b/initializr-web/src/main/java/io/spring/initializr/web/project/MetadataProjectDescriptionCustomizer.java @@ -91,7 +91,7 @@ private String cleanMavenCoordinate(String coordinate, String delimiter) { } private boolean shouldAppendDelimiter(String element, StringBuilder builder) { - if (builder.length() == 0) { + if (builder.isEmpty()) { return false; } for (char c : VALID_MAVEN_SPECIAL_CHARACTERS) {