use of org.codehaus.groovy.control.messages.Message in project spring-boot by spring-projects.
the class DependencyManagementBomTransformation method handleMalformedDependency.
private void handleMalformedDependency(Expression expression) {
Message message = createSyntaxErrorMessage(String.format("The string must be of the form \"group:module:version\"%n"), expression);
getSourceUnit().getErrorCollector().addErrorAndContinue(message);
}
use of org.codehaus.groovy.control.messages.Message in project spring-boot by spring-projects.
the class DependencyManagementBomTransformation method handleDuplicateDependencyManagementBomAnnotation.
private void handleDuplicateDependencyManagementBomAnnotation(AnnotationNode annotationNode) {
Message message = createSyntaxErrorMessage("Duplicate @DependencyManagementBom annotation. It must be declared at most once.", annotationNode);
getSourceUnit().getErrorCollector().addErrorAndContinue(message);
}
Aggregations