From 5547a8499fb1fbdb6493a4e4d3211a3b91f5d7ad Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Wed, 2 Oct 2019 14:41:01 -0700 Subject: [PATCH] Polish --- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- .../properties/ConfigurationProperties.java | 14 +++++++------- .../properties/ConfigurationPropertiesBean.java | 2 +- .../ImmutableConfigurationProperties.java | 14 +++++++------- .../boot/context/properties/bind/Bindable.java | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 3738bd79ec..cc48291dfb 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -901,7 +901,7 @@ The example in the previous section can be rewritten in an immutable fashion as ---- In this setup, the `@ImmutableConfigurationProperties` annotation is used to indicate that constructor binding should be used. -This means that the binder will expect to find a constructor with the parameters that you wish to have bound bind. +This means that the binder will expect to find a constructor with the parameters that you wish to have bound. Nested classes that also require constructor binding (such as `Security` in the example above) should use the `@ConstructorBinding` annotation. diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java index 00fb040d7d..a32c14b01a 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java @@ -50,19 +50,19 @@ import org.springframework.core.annotation.AliasFor; public @interface ConfigurationProperties { /** - * The name prefix of the properties that are valid to bind to this object. Synonym - * for {@link #prefix()}. A valid prefix is defined by one or more words separated - * with dots (e.g. {@code "acme.system.feature"}). - * @return the name prefix of the properties to bind + * The prefix of the properties that are valid to bind to this object. Synonym for + * {@link #prefix()}. A valid prefix is defined by one or more words separated with + * dots (e.g. {@code "acme.system.feature"}). + * @return the prefix of the properties to bind */ @AliasFor("prefix") String value() default ""; /** - * The name prefix of the properties that are valid to bind to this object. Synonym - * for {@link #value()}. A valid prefix is defined by one or more words separated with + * The prefix of the properties that are valid to bind to this object. Synonym for + * {@link #value()}. A valid prefix is defined by one or more words separated with * dots (e.g. {@code "acme.system.feature"}). - * @return the name prefix of the properties to bind + * @return the prefix of the properties to bind */ @AliasFor("value") String prefix() default ""; diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java index fdc2c6076c..9e0230fe4f 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java @@ -250,7 +250,7 @@ public final class ConfigurationPropertiesBean { } /** - * The binding method that use used for the bean. + * The binding method that is used for the bean. */ public enum BindMethod { diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ImmutableConfigurationProperties.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ImmutableConfigurationProperties.java index 6d37e908bd..112f8da6c3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ImmutableConfigurationProperties.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ImmutableConfigurationProperties.java @@ -40,19 +40,19 @@ import org.springframework.core.annotation.AliasFor; public @interface ImmutableConfigurationProperties { /** - * The name prefix of the properties that are valid to bind to this object. Synonym - * for {@link #prefix()}. A valid prefix is defined by one or more words separated - * with dots (e.g. {@code "acme.system.feature"}). - * @return the name prefix of the properties to bind + * The prefix of the properties that are valid to bind to this object. Synonym for + * {@link #prefix()}. A valid prefix is defined by one or more words separated with + * dots (e.g. {@code "acme.system.feature"}). + * @return the prefix of the properties to bind */ @AliasFor(annotation = ConfigurationProperties.class) String value() default ""; /** - * The name prefix of the properties that are valid to bind to this object. Synonym - * for {@link #value()}. A valid prefix is defined by one or more words separated with + * The prefix of the properties that are valid to bind to this object. Synonym for + * {@link #value()}. A valid prefix is defined by one or more words separated with * dots (e.g. {@code "acme.system.feature"}). - * @return the name prefix of the properties to bind + * @return the prefix of the properties to bind */ @AliasFor(annotation = ConfigurationProperties.class) String prefix() default ""; diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java index 16f3f6e602..f5f66f8f63 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java @@ -114,7 +114,7 @@ public final class Bindable { } /** - * Return the constructor filter that can be used to limit the constructor that are + * Return the constructor filter that can be used to limit the constructors that are * considered when binding. * @return the constructor filter * @since 2.2.0