Groovy Documentation

groovy.org.codenarc.rule.security
[Groovy] Class UnsafeImplementationAsMapRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.security.UnsafeImplementationAsMapRule

class UnsafeImplementationAsMapRule
extends AbstractAstVisitorRule

Reports incomplete interface implementations created by map-to-interface coercions. Example: [hasNext: { ... }] as Iterator (Not all Iterator methods are implemented. An UnsupportedOperationException will be thrown upon call to e.g. next().) By default, this rule does not apply to test files.

Authors:
Artur Gajowy


Property Summary
Class astVisitorClass

int compilerPhase

String doNotApplyToFilesMatching

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


compilerPhase

int compilerPhase


doNotApplyToFilesMatching

String doNotApplyToFilesMatching


name

String name


priority

int priority


 

Groovy Documentation