camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: CAMEL-8624: Bean component - Potential NPE in BeanInfo
Date Mon, 13 Apr 2015 09:13:28 GMT
CAMEL-8624: Bean component - Potential NPE in BeanInfo


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

Branch: refs/heads/camel-2.15.x
Commit: 89c987f86ebba874686d5ebf629efffbfdc076a9
Parents: 5caa6a0
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Apr 13 10:44:33 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Apr 13 11:16:20 2015 +0200

----------------------------------------------------------------------
 .../apache/camel/component/bean/issues/AbstractTransformer.java  | 2 +-
 .../java/org/apache/camel/component/bean/issues/Transformer.java | 4 ++--
 .../org/apache/camel/component/bean/issues/TransformerImpl.java  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/89c987f8/camel-core/src/test/java/org/apache/camel/component/bean/issues/AbstractTransformer.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/bean/issues/AbstractTransformer.java
b/camel-core/src/test/java/org/apache/camel/component/bean/issues/AbstractTransformer.java
index 0209c2e..95e82af 100644
--- a/camel-core/src/test/java/org/apache/camel/component/bean/issues/AbstractTransformer.java
+++ b/camel-core/src/test/java/org/apache/camel/component/bean/issues/AbstractTransformer.java
@@ -16,7 +16,7 @@
  */
 package org.apache.camel.component.bean.issues;
 
-public abstract class AbstractTransformer implements Transformer {
+public abstract class AbstractTransformer<T> implements Transformer<T> {
 
     protected String getTest() {
         return "test";

http://git-wip-us.apache.org/repos/asf/camel/blob/89c987f8/camel-core/src/test/java/org/apache/camel/component/bean/issues/Transformer.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/bean/issues/Transformer.java
b/camel-core/src/test/java/org/apache/camel/component/bean/issues/Transformer.java
index f231e21..71d417b 100644
--- a/camel-core/src/test/java/org/apache/camel/component/bean/issues/Transformer.java
+++ b/camel-core/src/test/java/org/apache/camel/component/bean/issues/Transformer.java
@@ -18,8 +18,8 @@ package org.apache.camel.component.bean.issues;
 
 import org.apache.camel.Exchange;
 
-public interface Transformer {
+public interface Transformer<T> {
 
-    Object transform(Exchange exchange);
+    T transform(Exchange exchange);
 
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/89c987f8/camel-core/src/test/java/org/apache/camel/component/bean/issues/TransformerImpl.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/bean/issues/TransformerImpl.java
b/camel-core/src/test/java/org/apache/camel/component/bean/issues/TransformerImpl.java
index b6ccda1..4c49537 100644
--- a/camel-core/src/test/java/org/apache/camel/component/bean/issues/TransformerImpl.java
+++ b/camel-core/src/test/java/org/apache/camel/component/bean/issues/TransformerImpl.java
@@ -18,7 +18,7 @@ package org.apache.camel.component.bean.issues;
 
 import org.apache.camel.Exchange;
 
-public class TransformerImpl extends AbstractTransformer {
+public class TransformerImpl extends AbstractTransformer<String> {
 
     @Override
     public String transform(Exchange exchange) {


Mime
View raw message