This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 77c74b1  CAMEL-17435: remove the Generated annotation so we can reduce 
dependencies in some modules
77c74b1 is described below

commit 77c74b18591b25c7182801fa9a0126057b871c2b
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Jan 7 13:11:55 2022 +0100

    CAMEL-17435: remove the Generated annotation so we can reduce dependencies 
in some modules
---
 .../src/generated/java/org/apache/camel/xml/in/ModelParser.java     | 6 ++++--
 .../apache/camel/maven/packaging/ModelXmlParserGeneratorMojo.java   | 3 +--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java 
b/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java
index 820d9f9..9fe0828 100644
--- 
a/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java
+++ 
b/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java
@@ -17,6 +17,10 @@
 
 //CHECKSTYLE:OFF
 
+
+/**
+ * Generated by Camel build tools - do NOT edit this file!
+ */
 package org.apache.camel.xml.in;
 
 import java.io.IOException;
@@ -25,7 +29,6 @@ import java.io.Reader;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
-import javax.annotation.Generated;
 import org.apache.camel.model.*;
 import org.apache.camel.model.cloud.*;
 import org.apache.camel.model.config.BatchResequencerConfig;
@@ -40,7 +43,6 @@ import org.apache.camel.model.validator.*;
 import org.apache.camel.xml.io.XmlPullParserException;
 
 @SuppressWarnings("unused")
-@Generated("org.apache.camel.maven.packaging.ModelXmlParserGeneratorMojo")
 public class ModelParser extends BaseParser {
 
     public ModelParser(
diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ModelXmlParserGeneratorMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ModelXmlParserGeneratorMojo.java
index 79064bd..9eb85dc 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ModelXmlParserGeneratorMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ModelXmlParserGeneratorMojo.java
@@ -45,7 +45,6 @@ import java.util.TreeMap;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
 
-import javax.annotation.Generated;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlAnyAttribute;
@@ -173,6 +172,7 @@ public class ModelXmlParserGeneratorMojo extends 
AbstractGeneratorMojo {
                + " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.\n"
                + " * See the License for the specific language governing 
permissions and\n"
                + " * limitations under the License.\n" + " */\n" + "\n" + 
"//CHECKSTYLE:OFF\n" + "\n"
+               + "\n/**\n * Generated by Camel build tools - do NOT edit this 
file!\n */\n"
                + parser.printClass() + "\n" + "//CHECKSTYLE:ON\n";
     }
 
@@ -223,7 +223,6 @@ public class ModelXmlParserGeneratorMojo extends 
AbstractGeneratorMojo {
         parser.addImport(List.class);
         parser.addImport(ArrayList.class);
         
parser.addAnnotation(SuppressWarnings.class).setLiteralValue("\"unused\"");
-        parser.addAnnotation(Generated.class).setLiteralValue("\"" + 
getClass().getName() + "\"");
         
parser.addMethod().setConstructor(true).setPublic().setName("ModelParser").addParameter("org.apache.camel.spi.Resource",
 "input").addThrows(IOException.class)
                 .addThrows(XML_PULL_PARSER_EXCEPTION).setBody("super(input);");
         
parser.addMethod().setConstructor(true).setPublic().setName("ModelParser").addParameter("org.apache.camel.spi.Resource",
 "input").addParameter(String.class, "namespace")

Reply via email to