Browse Source

Deprecate ConditionOutcome.inverse()

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>

See gh-43739
pull/43773/head
Yanming Zhou 12 months ago committed by Phillip Webb
parent
commit
d85a93b60b
  1. 3
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionOutcome.java

3
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionOutcome.java

@ -153,7 +153,10 @@ public class ConditionOutcome {
* @param outcome the outcome to inverse * @param outcome the outcome to inverse
* @return the inverse of the condition outcome * @return the inverse of the condition outcome
* @since 1.3.0 * @since 1.3.0
* @deprecated since 3.5.0 for removal in 3.6.0 in favor of
* {@link #ConditionOutcome(boolean, ConditionMessage)}
*/ */
@Deprecated(since = "3.5.0", forRemoval = true)
public static ConditionOutcome inverse(ConditionOutcome outcome) { public static ConditionOutcome inverse(ConditionOutcome outcome) {
return new ConditionOutcome(!outcome.isMatch(), outcome.getConditionMessage()); return new ConditionOutcome(!outcome.isMatch(), outcome.getConditionMessage());
} }

Loading…
Cancel
Save