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-9434: camel-catalog - did you mean
Date Wed, 23 Dec 2015 14:55:47 GMT
CAMEL-9434: camel-catalog - did you mean


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

Branch: refs/heads/camel-2.16.x
Commit: 5b4b7f01f1d192b8dc327fd7c45f410511f36984
Parents: 22ac8f5
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Dec 23 15:53:21 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Dec 23 15:55:37 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/catalog/EndpointValidationResult.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5b4b7f01/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java
----------------------------------------------------------------------
diff --git a/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java
b/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java
index c6b25ba..953ebf4 100644
--- a/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java
+++ b/platforms/catalog/src/main/java/org/apache/camel/catalog/EndpointValidationResult.java
@@ -226,8 +226,8 @@ public class EndpointValidationResult implements Serializable {
         Map<String, String> options = new LinkedHashMap<String, String>();
         if (unknown != null) {
             for (String name : unknown) {
-                if (unknownSuggestions != null && unknownSuggestions.containsKey(unknown))
{
-                    String[] suggestions = unknownSuggestions.get(unknown);
+                if (unknownSuggestions != null && unknownSuggestions.containsKey(name))
{
+                    String[] suggestions = unknownSuggestions.get(name);
                     String str = Arrays.asList(suggestions).toString();
                     options.put(name, "Unknown field. Did you mean: " + str);
                 } else {


Mime
View raw message