Browse Source

Remove the pure attribute from `@Contract`

Closes gh-33820
pull/33827/head
Sébastien Deleuze 1 year ago
parent
commit
9166688b6f
  1. 6
      spring-core/src/main/java/org/springframework/lang/Contract.java

6
spring-core/src/main/java/org/springframework/lang/Contract.java

@ -72,10 +72,4 @@ public @interface Contract { @@ -72,10 +72,4 @@ public @interface Contract {
* Contains the contract clauses describing causal relations between call arguments and the returned value.
*/
String value() default "";
/**
* Specifies if this method is pure, i.e. has no visible side effects. This may be used for more precise data flow analysis, and
* to check that the method's return value is actually used in the call place.
*/
boolean pure() default false;
}

Loading…
Cancel
Save