camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [4/4] camel git commit: Fixed CS
Date Sun, 15 Mar 2015 06:39:41 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/2ec8e5ce
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2ec8e5ce
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2ec8e5ce

Branch: refs/heads/master
Commit: 2ec8e5ce2f79c9b73b9d909c9a3c66bd35b2d14f
Parents: f2fbfc8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Mar 15 07:41:17 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Mar 15 07:41:17 2015 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/camel/maven/DomFinderTest.java   | 2 +-
 .../apache/camel/maven/EipDocumentationEnricherMojoTest.java  | 2 +-
 .../src/test/java/org/apache/camel/maven/ResourceUtils.java   | 7 +++++--
 .../src/test/java/org/apache/camel/maven/XmlHelperTest.java   | 1 -
 .../camel/maven/integration/EIPDocumentationMojoTest.java     | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2ec8e5ce/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/DomFinderTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/DomFinderTest.java
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/DomFinderTest.java
index 86a508f..c263a2f 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/DomFinderTest.java
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/DomFinderTest.java
@@ -27,6 +27,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 
 public class DomFinderTest {
+
     private DomFinder domFinder;
 
     @Test
@@ -55,7 +56,6 @@ public class DomFinderTest {
         assertEquals("uri", ((Element) attributesList.item(0)).getAttribute(Constants.NAME_ATTRIBUTE_NAME));
         assertEquals("skipSendToOriginalEndpoint",
                 ((Element) attributesList.item(1)).getAttribute(Constants.NAME_ATTRIBUTE_NAME));
-
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/camel/blob/2ec8e5ce/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/EipDocumentationEnricherMojoTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/EipDocumentationEnricherMojoTest.java
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/EipDocumentationEnricherMojoTest.java
index 560fa25..83035b3 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/EipDocumentationEnricherMojoTest.java
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/EipDocumentationEnricherMojoTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.maven;
 
 import java.io.File;
@@ -29,6 +28,7 @@ import static org.junit.Assert.fail;
 import static org.mockito.Mockito.when;
 
 public class EipDocumentationEnricherMojoTest {
+
     private EipDocumentationEnricherMojo eipDocumentationEnricherMojo = new EipDocumentationEnricherMojo();
 
     @Mock

http://git-wip-us.apache.org/repos/asf/camel/blob/2ec8e5ce/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/ResourceUtils.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/ResourceUtils.java
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/ResourceUtils.java
index 2da69fa..5b3604f 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/ResourceUtils.java
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/ResourceUtils.java
@@ -18,8 +18,11 @@ package org.apache.camel.maven;
 
 import java.io.File;
 
-public class ResourceUtils {
-    private ResourceUtils() { }
+public final class ResourceUtils {
+
+    private ResourceUtils() {
+        // noop
+    }
 
     public static File getResourceAsFile(String pathToFile) throws Exception {
         return new File(ResourceUtils.class.getClassLoader().getResource(pathToFile).getFile());

http://git-wip-us.apache.org/repos/asf/camel/blob/2ec8e5ce/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/XmlHelperTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/XmlHelperTest.java
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/XmlHelperTest.java
index b2e3ed5..e0003c4 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/XmlHelperTest.java
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/XmlHelperTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.maven;
 
 import org.junit.Test;

http://git-wip-us.apache.org/repos/asf/camel/blob/2ec8e5ce/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/integration/EIPDocumentationMojoTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/integration/EIPDocumentationMojoTest.java
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/integration/EIPDocumentationMojoTest.java
index 8d94b42..e5ce45a 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/integration/EIPDocumentationMojoTest.java
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/test/java/org/apache/camel/maven/integration/EIPDocumentationMojoTest.java
@@ -88,7 +88,7 @@ public class EIPDocumentationMojoTest {
 
     private void validateElement(Document doc) {
         NodeList element = doc.getElementsByTagName("xs:element");
-        Element e = ((Element) element.item(0));
+        Element e = (Element) element.item(0);
 
         assertEquals("aop", e.getAttribute(Constants.NAME_ATTRIBUTE_NAME));
 


Mime
View raw message