Inspectopedia
 
2024.3

GString map key

Warning
Reliability
New
Last modified: 03 December 2024

Reports statements which use a groovy.lang.GString object as a key to map. In general GString objects are mutable and probably should not be used as keys. Also, a GString entry cannot be accessed with a java.lang.String object with same value.

Example:

New in 2017.1