diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java
index e97fbde4875..3ebb221d00d 100644
--- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java
+++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java
@@ -177,6 +177,18 @@ public class KafkaProperties {
return properties;
}
+ /**
+ * Create an initial map of consumer properties from the state of this instance.
+ *
+ * This allows you to add additional properties, if necessary, and override the
+ * default {@code kafkaConsumerFactory} bean.
+ * @return the consumer properties initialized with the customizations defined on this
+ * instance
+ */
+ public Map buildConsumerProperties() {
+ return buildConsumerProperties(null);
+ }
+
/**
* Create an initial map of consumer properties from the state of this instance.
*
@@ -192,6 +204,18 @@ public class KafkaProperties {
return properties;
}
+ /**
+ * Create an initial map of producer properties from the state of this instance.
+ *
+ * This allows you to add additional properties, if necessary, and override the
+ * default {@code kafkaProducerFactory} bean.
+ * @return the producer properties initialized with the customizations defined on this
+ * instance
+ */
+ public Map buildProducerProperties() {
+ return buildProducerProperties(null);
+ }
+
/**
* Create an initial map of producer properties from the state of this instance.
*
diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/ClientsConfiguredCondition.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/ClientsConfiguredCondition.java
index 43e7ef93f99..36ddc5202eb 100644
--- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/ClientsConfiguredCondition.java
+++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/ClientsConfiguredCondition.java
@@ -36,7 +36,6 @@ import org.springframework.core.type.AnnotatedTypeMetadata;
* @author Madhura Bhave
* @since 2.1.0
*/
-
public class ClientsConfiguredCondition extends SpringBootCondition {
private static final Bindable