Merge pull request #43739 from quaff

* pr/43739:
  Polish "Deprecate ConditionOutcome.inverse()"
  Deprecate ConditionOutcome.inverse()

Closes gh-43739
This commit is contained in:
Phillip Webb
2025-01-13 14:47:42 -08:00

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.7.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());
}