camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] camel git commit: CAMEL-9434: camel-catalog - did you mean
Date Wed, 23 Dec 2015 14:55:46 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 22ac8f5c6 -> 5b4b7f01f
  refs/heads/master bd11506e0 -> a9df1da1b


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/a9df1da1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a9df1da1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a9df1da1

Branch: refs/heads/master
Commit: a9df1da1bd8060ba898663866c5554aa5c875168
Parents: bd11506
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:53:21 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/a9df1da1/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