From 3341a5db2b99027aa6dbef8da8ac464cbecdf2c4 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 10 Jun 2014 10:20:50 -0700 Subject: [PATCH] Deprecate @ConditionalOnMissingClass.value Fixes gh-1069 --- .../autoconfigure/condition/ConditionalOnMissingClass.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingClass.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingClass.java index 30022870da2..2bcdcbe4fa8 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingClass.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingClass.java @@ -41,7 +41,10 @@ public @interface ConditionalOnMissingClass { * bytecode it is safe to specify classes here that may ultimately not be on the * classpath. * @return the classes that must be present + * @deprecated Since 1.1.0 due to the fact that the reflection errors can occur when + * beans containing the annotation remain in the context. Use {@link #name()} instead. */ + @Deprecated public Class[] value() default {}; /**