Skip to content

Commit 20cff88

Browse files
committed
remove alwaysApplyingWhenNonNull()
1 parent 2e60d55 commit 20cff88

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsConsumerClientConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static class SharedConsumerConnectionConfiguration {
5151
SharedConsumerConnectionConfiguration(AzureEventHubsProperties properties, EventHubClientBuilder builder) {
5252
this.builder = builder;
5353

54-
PropertyMapper mapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
54+
PropertyMapper mapper = PropertyMapper.get();
5555
mapper.from(properties.getConsumer().getConsumerGroup()).to(builder::consumerGroup);
5656
mapper.from(properties.getConsumer().getPrefetchCount()).to(builder::prefetchCount);
5757
}

sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/properties/AzureEventHubsProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class AzureEventHubsProperties extends AzureEventHubsCommonProperties
4444
private final Processor processor = new Processor();
4545

4646
public Producer buildProducerProperties() {
47-
PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
47+
PropertyMapper propertyMapper = PropertyMapper.get();
4848

4949
Producer properties = new Producer();
5050
AzurePropertiesUtils.mergeAzureCommonProperties(this, this.producer, properties);
@@ -65,7 +65,7 @@ public Producer buildProducerProperties() {
6565
}
6666

6767
public Consumer buildConsumerProperties() {
68-
PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
68+
PropertyMapper propertyMapper = PropertyMapper.get();
6969

7070
Consumer properties = new Consumer();
7171
AzurePropertiesUtils.mergeAzureCommonProperties(this, this.consumer, properties);
@@ -88,7 +88,7 @@ public Consumer buildConsumerProperties() {
8888
}
8989

9090
public Processor buildProcessorProperties() {
91-
PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
91+
PropertyMapper propertyMapper = PropertyMapper.get();
9292

9393
Processor properties = new Processor();
9494
AzurePropertiesUtils.mergeAzureCommonProperties(this, this.processor, properties);

sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/servicebus/properties/AzureServiceBusProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public Processor getProcessor() {
5757
}
5858

5959
public Producer buildProducerProperties() {
60-
PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
60+
PropertyMapper propertyMapper = PropertyMapper.get();
6161

6262
Producer properties = new Producer();
6363

@@ -81,7 +81,7 @@ public Producer buildProducerProperties() {
8181
}
8282

8383
public Consumer buildConsumerProperties() {
84-
PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
84+
PropertyMapper propertyMapper = PropertyMapper.get();
8585

8686
Consumer properties = new Consumer();
8787

@@ -113,7 +113,7 @@ public Consumer buildConsumerProperties() {
113113
}
114114

115115
public Processor buildProcessorProperties() {
116-
PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
116+
PropertyMapper propertyMapper = PropertyMapper.get();
117117

118118
Processor properties = new Processor();
119119

0 commit comments

Comments
 (0)