This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new a8078c1 CAMEL-13981: make sure there are definitions to...
a8078c1 is described below
commit a8078c137880ade9d42ae13aa431e3c5c19c3e2e
Author: Zoran Regvart <[email protected]>
AuthorDate: Mon Sep 16 17:09:17 2019 +0200
CAMEL-13981: make sure there are definitions to...
... process
---
.../java/org/apache/camel/tools/apt/ModelAnnotationProcessor.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/tooling/apt/src/main/java/org/apache/camel/tools/apt/ModelAnnotationProcessor.java
b/tooling/apt/src/main/java/org/apache/camel/tools/apt/ModelAnnotationProcessor.java
index b92cdba..131b781 100644
---
a/tooling/apt/src/main/java/org/apache/camel/tools/apt/ModelAnnotationProcessor.java
+++
b/tooling/apt/src/main/java/org/apache/camel/tools/apt/ModelAnnotationProcessor.java
@@ -96,8 +96,10 @@ public class ModelAnnotationProcessor extends
AbstractCamelAnnotationProcessor {
springProcessor.processModelClass(processingEnv, roundEnv,
classElement);
}
- messager.printMessage(Kind.WARNING, String.format("Generating
placeholder definitions helper for %d definitions",
propertyPlaceholderDefinitions.size()));
-
PropertyPlaceholderGenerator.generatePropertyPlaceholderDefinitionsHelper(processingEnv,
roundEnv, propertyPlaceholderDefinitions);
+ if (! propertyPlaceholderDefinitions.isEmpty()) {
+ messager.printMessage(Kind.WARNING, String.format("Generating
placeholder definitions helper for %d definitions",
propertyPlaceholderDefinitions.size()));
+
PropertyPlaceholderGenerator.generatePropertyPlaceholderDefinitionsHelper(processingEnv,
roundEnv, propertyPlaceholderDefinitions);
+ }
}
}
\ No newline at end of file