Deprecate ConditionOutcome.inverse()

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

See gh-43739
This commit is contained in:
Yanming Zhou 2025-01-09 16:08:03 +08:00 committed by Phillip Webb
parent 17acb85878
commit d85a93b60b
1 changed files with 3 additions and 0 deletions

View File

@ -153,7 +153,10 @@ public class ConditionOutcome {
* @param outcome the outcome to inverse
* @return the inverse of the condition outcome
* @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) {
return new ConditionOutcome(!outcome.isMatch(), outcome.getConditionMessage());
}