diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurationsSenderConfigurationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurationsSenderConfigurationTests.java index 9acd540a73fd..a5ef79a853f1 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurationsSenderConfigurationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurationsSenderConfigurationTests.java @@ -47,7 +47,7 @@ class ZipkinConfigurationsSenderConfigurationTests { .withConfiguration(AutoConfigurations.of(DefaultEncodingConfiguration.class, SenderConfiguration.class)); @Test - void shouldSupplyDefaultHttpClientSenderBeans() { + void shouldSupplyDefaultHttpClientSenderBean() { this.contextRunner.run((context) -> { assertThat(context).hasSingleBean(BytesMessageSender.class); assertThat(context).hasSingleBean(ZipkinHttpClientSender.class); @@ -56,7 +56,7 @@ void shouldSupplyDefaultHttpClientSenderBeans() { } @Test - void shouldUseUrlSenderIfHttpSenderIsNotAvailable() { + void shouldUseUrlConnectionSenderIfHttpClientIsNotAvailable() { this.contextRunner.withUserConfiguration(UrlConnectionSenderConfiguration.class) .withClassLoader(new FilteredClassLoader(HttpClient.class)) .run((context) -> { @@ -85,16 +85,6 @@ void shouldUseCustomHttpEndpointSupplierFactory() { }); } - @Configuration(proxyBeanMethods = false) - private static final class HttpClientConfiguration { - - @Bean - ZipkinHttpClientBuilderCustomizer httpClientBuilderCustomizer() { - return mock(ZipkinHttpClientBuilderCustomizer.class); - } - - } - @Configuration(proxyBeanMethods = false) private static final class CustomConfiguration { diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java index 5a69f78f006a..615202f996aa 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java @@ -54,8 +54,8 @@ /** * The class type of bean that should be checked. The condition matches if a bean of * the class specified is contained in the {@link BeanFactory} and a primary candidate - * exists in case of multiple instances. Beans that are not autowire candidates or - * that are not default candidates or that are fallback candidates are ignored. + * exists in case of multiple instances. Beans that are not autowire candidates, that + * are not default candidates, or that are fallback candidates are ignored. *
* This attribute may not be used in conjunction with * {@link #type()}, but it may be used instead of {@link #type()}. @@ -71,7 +71,7 @@ * The class type name of bean that should be checked. The condition matches if a bean * of the class specified is contained in the {@link BeanFactory} and a primary * candidate exists in case of multiple instances. Beans that are not autowire - * candidates or that are not default candidates or that are fallback candidates are + * candidates, that are not default candidates, or that are fallback candidates are * ignored. *
* This attribute may not be used in conjunction with
diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/DefaultGraphQlSchemaCondition.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/DefaultGraphQlSchemaCondition.java
index a8f23e64415d..d9a4aa84a259 100644
--- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/DefaultGraphQlSchemaCondition.java
+++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/DefaultGraphQlSchemaCondition.java
@@ -84,10 +84,10 @@ public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeM
else {
messages.add((message.didNotFind("GraphQlSourceBuilderCustomizer").atAll()));
}
- String[] graphqlSourceBeans = beanFactory.getBeanNamesForType(GraphQlSource.class, false, false);
- if (graphqlSourceBeans.length != 0) {
+ String[] graphQlSourceBeanNames = beanFactory.getBeanNamesForType(GraphQlSource.class, false, false);
+ if (graphQlSourceBeanNames.length != 0) {
match = true;
- messages.add(message.found("graphqlSource").items(Arrays.asList(graphqlSourceBeans)));
+ messages.add(message.found("GraphQlSource").items(Arrays.asList(graphQlSourceBeanNames)));
}
else {
messages.add((message.didNotFind("GraphQlSource").atAll()));
diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/specification/pages/configuration-metadata/format.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/specification/pages/configuration-metadata/format.adoc
index baf80ff5aee3..ae560f89901b 100644
--- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/specification/pages/configuration-metadata/format.adoc
+++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/specification/pages/configuration-metadata/format.adoc
@@ -2,7 +2,7 @@
= Metadata Format
Configuration metadata files are located inside jars under `META-INF/spring-configuration-metadata.json`.
-They use a JSON format with items categorized under either "`groups`" or "`properties`", additional values hints categorized under "hints", and ignored items under "`ignored`" as shown in the following example:
+They use a JSON format with items categorized under either "`groups`" or "`properties`", additional values hints categorized under "`hints`", and ignored items under "`ignored`" as shown in the following example:
[source,json]
----
@@ -93,7 +93,7 @@ Some properties might exist in their own right.
The "`hints`" are additional information used to assist the user in configuring a given property.
For example, when a developer is configuring the configprop:spring.jpa.hibernate.ddl-auto[] property, a tool can use the hints to offer some auto-completion help for the `none`, `validate`, `update`, `create`, and `create-drop` values.
-Finally, "`ignored`" are items which have been deliberately ignored.
+Finally, "`ignored`" is for items which have been deliberately ignored.
The content of this section usually comes from the xref:specification:configuration-metadata/annotation-processor.adoc#appendix.configuration-metadata.annotation-processor.adding-additional-metadata[additional metadata].
@@ -313,8 +313,8 @@ The `ignored` object can contain the attributes shown in the following table:
| Name | Type | Purpose
| `properties`
-| IgnoredProperty[]
-| A list of ignored properties as defined by the IgnoredProperty object (described in the next table). Each entry defines the name of the ignored property.
+| ItemIgnore[]
+| A list of ignored properties as defined by the ItemIgnore object (described in the next table). Each entry defines the name of the ignored property.
|===
diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemIgnore.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemIgnore.java
index f29d22c132b2..ec5e7971f326 100644
--- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemIgnore.java
+++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemIgnore.java
@@ -33,12 +33,12 @@ public final class ItemIgnore implements Comparable