Back to Intellij Community

Description

java/java-impl/resources/intentionDescriptions/EditRangeIntention/description.html

2025.3-rc-2412 B
Original Source

Can add a @Range annotation or edit its value. @Range annotations can be added to method parameters, fields, or method return values and are used by static analysis tools (e.g. inspections) to validate the code.

A range can be specified for a value of a long, int, short, char, or byte type. A range is defined by specifying the lower bound from (inclusive) and the upper bound to (inclusive).