Groovy Documentation

groovy.org.codenarc.rule.groovyism
[Groovy] Class GStringAsMapKeyRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.groovyism.GStringAsMapKeyRule

class GStringAsMapKeyRule
extends AbstractAstVisitorRule

A rule that disallows GStrings as map keys as they might change their hashcode over time. The map keys and values are recursively checked.

Authors:
@Hackergarten


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation