Inspectopedia
 
2024.3

'map.get()' with not-null assertion operator (!!)

Info
New
Last modified: 03 December 2024

Reports map.get()!! that can be replaced with map.getValue(), map.getOrElse(), and so on.

Example:

After the quick-fix is applied: