Inspectopedia
 
2024.3

Call to Map.put can be keyed access

Warning
Code Style
New
Last modified: 03 December 2024

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

Example:

After the quick-fix is applied: