Remove the pure
attribute from @Contract
#33820
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
The
@Contract
annotation introduced via #32475 has apure
attribute that is coming from itsorg.jetbrains.annotations.Contract
counterpart. It was historically used to trigger warnings when the return value is not used, but it looks like it is not the case anymore with IDEA 2023.1+ and the@CheckReturnValue
annotation introduced in #33818 provides a more explicit signal, so we prefer to remove thepure
attribute from@Contract
in Spring Framework 6.2.0, letting to door open to a future reintroduction only if strong use cases arise.The text was updated successfully, but these errors were encountered: