Groovy Documentation

groovy.org.codenarc.rule.unnecessary
[Groovy] Class UnnecessaryStringInstantiationAstVisitor

java.lang.Object
  org.codenarc.rule.AbstractConstructorCallAstVisitor
      groovy.org.codenarc.rule.unnecessary.UnnecessaryStringInstantiationAstVisitor

class UnnecessaryStringInstantiationAstVisitor
extends AbstractConstructorCallAstVisitor

Property Summary
static def NEW_STRING

 
Method Summary
protected String getViolationMessage(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)

protected def isConstructorCallAViolation(org.codehaus.groovy.ast.expr.ConstructorCallExpression constructorCall)

 

Property Detail

NEW_STRING

static final def NEW_STRING


 
Method Detail

getViolationMessage

@Override
protected String getViolationMessage(org.codehaus.groovy.ast.expr.ConstructorCallExpression call)


isConstructorCallAViolation

@SuppressWarnings('ExplicitCallToGetAtMethod')
protected def isConstructorCallAViolation(org.codehaus.groovy.ast.expr.ConstructorCallExpression constructorCall)


 

Groovy Documentation