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 2015/04/13 08:58:31 UTC

camel git commit: Fixed test on Java 8

Repository: camel
Updated Branches:
  refs/heads/master c4900c046 -> 858b151a5


Fixed test on Java 8


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

Branch: refs/heads/master
Commit: 858b151a5a1618ae96a48b67a2f51999b5420228
Parents: c4900c0
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Apr 13 09:01:16 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Apr 13 09:01:16 2015 +0200

----------------------------------------------------------------------
 .../camel/test/blueprint/converter2/MyConverters.java    | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/858b151a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/converter2/MyConverters.java
----------------------------------------------------------------------
diff --git a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/converter2/MyConverters.java b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/converter2/MyConverters.java
index 29e3749..c360311 100644
--- a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/converter2/MyConverters.java
+++ b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/converter2/MyConverters.java
@@ -19,13 +19,10 @@ package org.apache.camel.test.blueprint.converter2;
 import org.apache.camel.Converter;
 import org.apache.camel.TypeConverters;
 
-public final class MyConverters implements TypeConverters {
-    private MyConverters() {
-        // Helper class
-    }
-    
+public class MyConverters implements TypeConverters {
+
     @Converter
-    public static Country toCountry(String iso) {
+    public Country toCountry(String iso) {
         Country answer = new Country();
         answer.setIso("en");
         answer.setName("England");
@@ -33,7 +30,7 @@ public final class MyConverters implements TypeConverters {
     }
 
     @Converter
-    public static String toIso(Country country) {
+    public String toIso(Country country) {
         return country.getIso();
     }
 }