use of org.codehaus.groovy.control.Janitor in project grails-core by grails.
the class GrailsASTUtils method warning.
public static void warning(final SourceUnit sourceUnit, final ASTNode node, final String warningMessage) {
final String sample = sourceUnit.getSample(node.getLineNumber(), node.getColumnNumber(), new Janitor());
System.err.println("WARNING: " + warningMessage + "\n\n" + sample);
}
Aggregations