Java 26
- 'Comparator.min()' or 'Comparator.max()' can be used
Reports if statements and ternary expressions with Comparator.compare() calls that can be replaced with Comparator.max() or Comparator.min() calls.
Last modified: 31 March 2026
Reports if statements and ternary expressions with Comparator.compare() calls that can be replaced with Comparator.max() or Comparator.min() calls.