Skip to content

Commit e9abe34

Browse files
committed
Merge pull request #43739 from quaff
* pr/43739: Polish "Deprecate ConditionOutcome.inverse()" Deprecate ConditionOutcome.inverse() Closes gh-43739
2 parents 17acb85 + f8a1a6e commit e9abe34

File tree

1 file changed

+3
-0
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition

1 file changed

+3
-0
lines changed

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionOutcome.java

+3
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ public String toString() {
153153
* @param outcome the outcome to inverse
154154
* @return the inverse of the condition outcome
155155
* @since 1.3.0
156+
* @deprecated since 3.5.0 for removal in 3.7.0 in favor of
157+
* {@link #ConditionOutcome(boolean, ConditionMessage)}
156158
*/
159+
@Deprecated(since = "3.5.0", forRemoval = true)
157160
public static ConditionOutcome inverse(ConditionOutcome outcome) {
158161
return new ConditionOutcome(!outcome.isMatch(), outcome.getConditionMessage());
159162
}

0 commit comments

Comments
 (0)