Deprecate ConditionOutcome.inverse()
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com> See gh-43739
This commit is contained in:
parent
17acb85878
commit
d85a93b60b
|
@ -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…
Reference in New Issue