You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/16 05:09:34 UTC

[camel] 02/03: Fixed CS

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

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

commit 1f9f08ad9a7c39b040d78dceea09be5c65bc4d34
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jan 16 06:06:19 2020 +0100

    Fixed CS
---
 .../java/org/apache/camel/xml/in/ModelParser.java  |  6 +++-
 .../packaging/ModelXmlParserGeneratorMojo.java     | 38 +++++++++++++---------
 2 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/ModelParser.java b/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/ModelParser.java
index 1b4ed77..a8d9226 100644
--- a/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/ModelParser.java
+++ b/core/camel-xml-io/src/main/java/org/apache/camel/xml/in/ModelParser.java
@@ -14,6 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+//CHECKSTYLE:OFF
+
 package org.apache.camel.xml.in;
 
 import java.io.IOException;
@@ -3030,4 +3033,5 @@ public class ModelParser extends BaseParser {
             default: return null;
         }
     }
-}
\ No newline at end of file
+}
+//CHECKSTYLE:ON
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 37a12d4..8ea2901 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
@@ -142,22 +142,28 @@ public class ModelXmlParserGeneratorMojo extends AbstractGeneratorMojo {
                 .collect(Collectors.toList());
 
         JavaClass parser = generateParser(model, classLoader);
-        return  "/*\n" +
-                " * Licensed to the Apache Software Foundation (ASF) under one or more\n" +
-                " * contributor license agreements.  See the NOTICE file distributed with\n" +
-                " * this work for additional information regarding copyright ownership.\n" +
-                " * The ASF licenses this file to You under the Apache License, Version 2.0\n" +
-                " * (the \"License\"); you may not use this file except in compliance with\n" +
-                " * the License.  You may obtain a copy of the License at\n" +
-                " *\n" +
-                " *      http://www.apache.org/licenses/LICENSE-2.0\n" +
-                " *\n" +
-                " * Unless required by applicable law or agreed to in writing, software\n" +
-                " * distributed under the License is distributed on an \"AS IS\" BASIS,\n" +
-                " * 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" + parser.printClass();
+        return  "/*\n"
+                + " * Licensed to the Apache Software Foundation (ASF) under one or more\n"
+                + " * contributor license agreements.  See the NOTICE file distributed with\n"
+                + " * this work for additional information regarding copyright ownership.\n"
+                + " * The ASF licenses this file to You under the Apache License, Version 2.0\n"
+                + " * (the \"License\"); you may not use this file except in compliance with\n"
+                + " * the License.  You may obtain a copy of the License at\n"
+                + " *\n"
+                + " *      http://www.apache.org/licenses/LICENSE-2.0\n"
+                + " *\n"
+                + " * Unless required by applicable law or agreed to in writing, software\n"
+                + " * distributed under the License is distributed on an \"AS IS\" BASIS,\n"
+                + " * 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"
+                + parser.printClass()
+                + "\n"
+                + "//CHECKSTYLE:ON\n";
     }
 
     protected Class<?> loadClass(ClassLoader loader, String name) {