Fixed compile errors with replacements for deprecations
This commit is contained in:
@@ -141,7 +141,7 @@ public class KafkaTopicProvisioner implements
|
||||
|
||||
Assert.isTrue(kafkaProperties != null, "KafkaProperties cannot be null");
|
||||
this.configurationProperties = kafkaBinderConfigurationProperties;
|
||||
this.adminClientProperties = kafkaProperties.buildAdminProperties();
|
||||
this.adminClientProperties = kafkaProperties.buildAdminProperties(null);
|
||||
normalalizeBootPropsWithBinder(this.adminClientProperties, kafkaProperties,
|
||||
kafkaBinderConfigurationProperties);
|
||||
// If the application provides AdminConfig customizers
|
||||
|
||||
@@ -93,9 +93,9 @@ public class KafkaStreamsBinderHealthIndicator extends AbstractHealthIndicator i
|
||||
KafkaProperties kafkaProperties,
|
||||
KafkaStreamsBindingInformationCatalogue kafkaStreamsBindingInformationCatalogue) {
|
||||
super("Kafka-streams health check failed");
|
||||
kafkaProperties.buildAdminProperties();
|
||||
kafkaProperties.buildAdminProperties(null);
|
||||
this.configurationProperties = kafkaStreamsBinderConfigurationProperties;
|
||||
this.adminClientProperties = kafkaProperties.buildAdminProperties();
|
||||
this.adminClientProperties = kafkaProperties.buildAdminProperties(null);
|
||||
KafkaTopicProvisioner.normalalizeBootPropsWithBinder(this.adminClientProperties, kafkaProperties,
|
||||
kafkaStreamsBinderConfigurationProperties);
|
||||
this.kafkaStreamsRegistry = kafkaStreamsRegistry;
|
||||
|
||||
@@ -170,7 +170,7 @@ public class KafkaStreamsBinderSupportAutoConfiguration {
|
||||
@Qualifier("binderConfigurationProperties") KafkaStreamsBinderConfigurationProperties properties,
|
||||
Environment environment) {
|
||||
KafkaProperties kafkaProperties = properties.getKafkaProperties();
|
||||
Map<String, Object> streamsProperties = kafkaProperties.buildStreamsProperties();
|
||||
Map<String, Object> streamsProperties = kafkaProperties.buildStreamsProperties(null);
|
||||
if (kafkaProperties.getStreams().getApplicationId() == null) {
|
||||
String applicationName = environment.getProperty("spring.application.name");
|
||||
if (applicationName != null) {
|
||||
|
||||
@@ -944,7 +944,7 @@ class RabbitBinderTests extends
|
||||
this.rabbitTestSupport.getResource())
|
||||
.receive("foo.props.0.prodPropsRequired-0", 10_000);
|
||||
assertThat(received).isNotNull();
|
||||
assertThat(received.getMessageProperties().getReceivedDelay()).isEqualTo(42);
|
||||
assertThat(received.getMessageProperties().getReceivedDelayLong()).isEqualTo(42);
|
||||
|
||||
producerBinding.unbind();
|
||||
assertThat(endpoint.isRunning()).isFalse();
|
||||
|
||||
Reference in New Issue
Block a user