Inspectopedia
 
2024.3

Call to List.set can be keyed access

Warning
Code Style
New
Last modified: 03 December 2024

Reports calls to java.util.List.set() methods. Such calls could be replaced by the shorter and clearer keyed access form.

Example:

After the quick-fix is applied: