camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lburgazz...@apache.org
Subject [3/6] camel git commit: Fix missing return
Date Thu, 30 Mar 2017 16:05:51 GMT
Fix missing return


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

Branch: refs/heads/master
Commit: 922a99f714ea5407f34cd0423d3787f5c499cd63
Parents: c810328
Author: lburgazzoli <lburgazzoli@gmail.com>
Authored: Thu Mar 30 18:03:41 2017 +0200
Committer: lburgazzoli <lburgazzoli@gmail.com>
Committed: Thu Mar 30 18:03:41 2017 +0200

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/922a99f7/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java b/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
index 9fcc1ad..07bb308 100644
--- a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
@@ -408,7 +408,7 @@ public final class ObjectHelper {
     public static Optional<Object> firstNotNull(Object... values) {
         for (int i = 0; i < values.length; i++) {
             if (values[i] != null) {
-                Optional.of(values[i]);
+                return Optional.of(values[i]);
             }
         }
 


Mime
View raw message