camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [11/11] camel git commit: Fixed CS
Date Fri, 04 Mar 2016 14:00:44 GMT
Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/af8c3283
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/af8c3283
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/af8c3283

Branch: refs/heads/master
Commit: af8c3283a55161d836c61f2d78c4b188dbd2db62
Parents: 93483a7
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Mar 4 15:00:24 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Mar 4 15:00:24 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/camel/example/spark/UserMain.java    | 6 +++++-
 .../org/apache/camel/example/widget/WidgetApplication.java    | 7 ++++++-
 .../main/java/org/apache/camel/example/widget/WidgetMain.java | 6 +++++-
 3 files changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/af8c3283/examples/camel-example-spark-rest/src/main/java/org/apache/camel/example/spark/UserMain.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-spark-rest/src/main/java/org/apache/camel/example/spark/UserMain.java
b/examples/camel-example-spark-rest/src/main/java/org/apache/camel/example/spark/UserMain.java
index 0220ec0..9608f5f 100644
--- a/examples/camel-example-spark-rest/src/main/java/org/apache/camel/example/spark/UserMain.java
+++ b/examples/camel-example-spark-rest/src/main/java/org/apache/camel/example/spark/UserMain.java
@@ -18,7 +18,11 @@ package org.apache.camel.example.spark;
 
 import org.apache.camel.main.Main;
 
-public class UserMain {
+public final class UserMain {
+
+    private UserMain() {
+        // to comply with checkstyle rule
+    }
 
     public static void main(String[] args) throws Exception {
         Main main = new Main();

http://git-wip-us.apache.org/repos/asf/camel/blob/af8c3283/examples/camel-example-widget-gadget-cdi/src/main/java/org/apache/camel/example/widget/WidgetApplication.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-widget-gadget-cdi/src/main/java/org/apache/camel/example/widget/WidgetApplication.java
b/examples/camel-example-widget-gadget-cdi/src/main/java/org/apache/camel/example/widget/WidgetApplication.java
index 88e7f98..d21e988 100644
--- a/examples/camel-example-widget-gadget-cdi/src/main/java/org/apache/camel/example/widget/WidgetApplication.java
+++ b/examples/camel-example-widget-gadget-cdi/src/main/java/org/apache/camel/example/widget/WidgetApplication.java
@@ -23,7 +23,12 @@ import org.apache.activemq.camel.component.ActiveMQComponent;
 /**
  * To configure the widget-gadget application
  */
-public class WidgetApplication {
+public final class WidgetApplication {
+
+    private WidgetApplication() {
+
+        // to comply with checkstyle
+    }
 
     /**
      * Factory to create the {@link ActiveMQComponent} which is used in this application

http://git-wip-us.apache.org/repos/asf/camel/blob/af8c3283/examples/camel-example-widget-gadget-java/src/main/java/org/apache/camel/example/widget/WidgetMain.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-widget-gadget-java/src/main/java/org/apache/camel/example/widget/WidgetMain.java
b/examples/camel-example-widget-gadget-java/src/main/java/org/apache/camel/example/widget/WidgetMain.java
index 420e483..3400c67 100644
--- a/examples/camel-example-widget-gadget-java/src/main/java/org/apache/camel/example/widget/WidgetMain.java
+++ b/examples/camel-example-widget-gadget-java/src/main/java/org/apache/camel/example/widget/WidgetMain.java
@@ -22,11 +22,15 @@ import org.apache.camel.main.Main;
 /**
  * A plain Java Main to start the widget and gadget example.
  */
-public class WidgetMain {
+public final class WidgetMain {
 
     // use Camel Main to setup and run Camel
     private static Main main = new Main();
 
+    private WidgetMain() {
+        // to comply with checkstyle
+    }
+
     public static void main(String[] args) throws Exception {
         // create the ActiveMQ component
         main.bind("activemq", createActiveMQComponent());


Mime
View raw message