Java 21
- Clamp function can be used
Reports combinations of Math.max() and Math.min() that are equivalent to Math.clamp().
- Record pattern can be used
Reports patterns that can be replaced with record patterns.
- SequencedCollection method can be used
Reports collection API method calls that can be simplified using SequencedCollection methods.
- String template can be concatenated string
Reports string template expressions using the STR processor and offers a quick-fix to migrate back to a plain string concatenation.
- String template can be used
Reports String concatenations that can be simplified by replacing them with a string template.
Last modified: 31 March 2026