Skip to content

Commit d6cfcd0

Browse files
izeyebclozel
authored andcommitted
Fix compile errors
Closes gh-32569
1 parent 2c39345 commit d6cfcd0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/web/client/ClientHttpObservationConventionAdapterTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ class ClientHttpObservationConventionAdapterTests {
5555

5656
@BeforeEach
5757
void setup() {
58-
this.context = new ClientHttpObservationContext();
59-
this.context.setCarrier(this.request);
58+
this.context = new ClientHttpObservationContext(this.request);
6059
this.context.setResponse(this.response);
6160
this.context.setUriTemplate("/resource/{name}");
6261
}

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,6 @@ Optional<String> getOptional() {
22022202

22032203
}
22042204

2205-
@ConstructorBinding
22062205
@ConfigurationProperties(prefix = "test")
22072206
static class ConstructorParameterWithUnitProperties {
22082207

@@ -2212,6 +2211,7 @@ static class ConstructorParameterWithUnitProperties {
22122211

22132212
private final Period period;
22142213

2214+
@ConstructorBinding
22152215
ConstructorParameterWithUnitProperties(@DefaultValue("2") @DurationUnit(ChronoUnit.DAYS) Duration duration,
22162216
@DefaultValue("3") @DataSizeUnit(DataUnit.MEGABYTES) DataSize size,
22172217
@DefaultValue("4") @PeriodUnit(ChronoUnit.YEARS) Period period) {

0 commit comments

Comments
 (0)