Skip to content

Commit a23700f

Browse files
committed
Merge branch '2.2.x'
Closes gh-20845
2 parents 72f2afe + 1960c90 commit a23700f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/properties/PushRegistryProperties.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -92,10 +92,12 @@ public void setReadTimeout(Duration readTimeout) {
9292
this.readTimeout = readTimeout;
9393
}
9494

95+
@Deprecated
9596
public Integer getNumThreads() {
9697
return this.numThreads;
9798
}
9899

100+
@Deprecated
99101
public void setNumThreads(Integer numThreads) {
100102
this.numThreads = numThreads;
101103
}

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/properties/PushRegistryPropertiesConfigAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,6 +57,7 @@ public boolean enabled() {
5757
}
5858

5959
@Override
60+
@SuppressWarnings("deprecation")
6061
public int numThreads() {
6162
return get(T::getNumThreads, PushRegistryConfig.super::numThreads);
6263
}

0 commit comments

Comments
 (0)