Fixed compile errors with replacements for deprecations

This commit is contained in:
spencergibb
2024-08-05 15:53:43 -04:00
parent 3dd4a0747b
commit 42c42104ea
4 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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();