camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: readd defaulting logic
Date Fri, 07 Aug 2015 13:36:40 GMT
Repository: camel
Updated Branches:
  refs/heads/master c63c25033 -> 9935da13f


readd defaulting logic


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

Branch: refs/heads/master
Commit: 9935da13fe31018fc6841360e4c553d4b85cca7b
Parents: c63c250
Author: sebi <sebi@softvision.ro>
Authored: Fri Aug 7 16:28:54 2015 +0300
Committer: sebi <sebi@softvision.ro>
Committed: Fri Aug 7 16:28:54 2015 +0300

----------------------------------------------------------------------
 .../org/apache/camel/model/rest/RestOperationParamDefinition.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9935da13/camel-core/src/main/java/org/apache/camel/model/rest/RestOperationParamDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/rest/RestOperationParamDefinition.java
b/camel-core/src/main/java/org/apache/camel/model/rest/RestOperationParamDefinition.java
index 168946a..7e89bd3 100644
--- a/camel-core/src/main/java/org/apache/camel/model/rest/RestOperationParamDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/rest/RestOperationParamDefinition.java
@@ -154,7 +154,7 @@ public class RestOperationParamDefinition {
     }
 
     public String getDataType() {
-        return dataType;
+        return dataType != null ? dataType : "string";
     }
 
     /**


Mime
View raw message