Replaces deprecated note on Properties with TODO to hide them in 3.x (#1639)

I noticed we deleted many things without deprecation in 3.x and figured
deprecation was the right way. However, this doesn't work for auto-config
properties. This replaces deprecation with a TODO note to hide all the
types so that 4.x won't require guessing if someone externally is using
them directly or not.
This commit is contained in:
Adrian Cole
2020-05-16 14:37:45 +08:00
committed by GitHub
parent b1d39ce291
commit c1a83aa5bb
20 changed files with 20 additions and 50 deletions

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @since 1.2.0
*/
@ConfigurationProperties("spring.sleuth.annotation")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthAnnotationProperties {
private boolean enabled = true;

View File

@@ -26,11 +26,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 1.0.11
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthProperties {
private boolean enabled = true;

View File

@@ -26,11 +26,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Jesus Alonso
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties(prefix = "spring.sleuth.async")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthAsyncProperties {
/**

View File

@@ -23,10 +23,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.2.1
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
// TODO: Hide in 3.x, if it isn't already deleted
@ConfigurationProperties("spring.sleuth.circuitbreaker")
public class SleuthCircuitBreakerProperties {

View File

@@ -22,10 +22,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* Sleuth Hystrix settings.
*
* @author Daniel Albuquerque
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
// TODO: Hide in 3.x, if it isn't already deleted
@ConfigurationProperties("spring.sleuth.hystrix.strategy")
public class SleuthHystrixConcurrencyStrategyProperties {

View File

@@ -23,10 +23,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
// TODO: Hide in 3.x, if it isn't already deleted
@ConfigurationProperties("spring.sleuth")
public class SleuthMessagingProperties {

View File

@@ -23,10 +23,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
// TODO: Hide in 3.x, if it isn't already deleted
@ConfigurationProperties("spring.sleuth.opentracing")
public class SleuthOpentracingProperties {

View File

@@ -23,11 +23,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.2
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.reactor")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthReactorProperties {
/**

View File

@@ -22,11 +22,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* Sleuth Redis properties.
*
* @author Daniel Albuquerque
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.redis")
// TODO: Hide in 3.x, if it isn't already deleted
public class TraceRedisProperties {
/**

View File

@@ -23,11 +23,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.rxjava.schedulers")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthRxJavaSchedulersProperties {
/**

View File

@@ -24,11 +24,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.scheduled")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthSchedulingProperties {
/**

View File

@@ -23,11 +23,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.http.legacy")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthHttpLegacyProperties {
/**

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @since 2.0.0
*/
@ConfigurationProperties("spring.sleuth.http")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthHttpProperties {
private boolean enabled = true;

View File

@@ -24,11 +24,9 @@ import org.springframework.boot.context.properties.NestedConfigurationProperty;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.web")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthWebProperties {
/**

View File

@@ -23,11 +23,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.2
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.feign")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthFeignProperties {
/**

View File

@@ -26,11 +26,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.log.slf4j")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthSlf4jProperties {
/**

View File

@@ -26,11 +26,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Taras Danylchuk
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.propagation.tag")
// TODO: Hide in 3.x, if it isn't already deleted
public class SleuthTagPropagationProperties {
/**

View File

@@ -24,11 +24,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @author Marcin Grzejszczak
* @author Adrian Cole
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.sampler")
// TODO: Hide in 3.x, if it isn't already deleted
public class SamplerProperties {
/**

View File

@@ -25,11 +25,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Spencer Gibb
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.zipkin")
// TODO: Hide in 3.x, if it isn't already deleted
public class ZipkinProperties {
/**

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @since 1.3.1
*/
@ConfigurationProperties("spring.zipkin.sender")
// TODO: Hide in 3.x, if it isn't already deleted
public class ZipkinSenderProperties {
/**