camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gzurow...@apache.org
Subject [3/3] camel git commit: style consistency
Date Fri, 30 Oct 2015 20:28:34 GMT
style consistency

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

Branch: refs/heads/camel-2.16.x
Commit: 59705f9566788199b5912c267e7bc48bdc8e013a
Parents: 0bf6708
Author: Jay Lapham <jaywilliamlapham@gmail.com>
Authored: Fri Oct 30 12:07:36 2015 -0500
Committer: Gregor Zurowski <gregor@zurowski.org>
Committed: Fri Oct 30 21:24:19 2015 +0100

----------------------------------------------------------------------
 .../converter/ElasticsearchActionRequestConverter.java           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/59705f95/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java
----------------------------------------------------------------------
diff --git a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java
b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java
index af7b214..3763ff1 100644
--- a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java
+++ b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/elasticsearch/converter/ElasticsearchActionRequestConverter.java
@@ -51,14 +51,14 @@ public final class ElasticsearchActionRequestConverter {
         } else {
             return null;
         }
-        
-        indexRequest.parent(exchange.getIn().getHeader(ElasticsearchConstants.PARENT, String.class));
 
         return indexRequest
                 .consistencyLevel(exchange.getIn().getHeader(
                         ElasticsearchConstants.PARAM_CONSISTENCY_LEVEL, WriteConsistencyLevel.class))
                 .replicationType(exchange.getIn().getHeader(
                         ElasticsearchConstants.PARAM_REPLICATION_TYPE, ReplicationType.class))
+                .parent(exchange.getIn().getHeader(
+                        ElasticsearchConstants.PARENT, String.class))
                 .index(exchange.getIn().getHeader(
                         ElasticsearchConstants.PARAM_INDEX_NAME, String.class))
                 .type(exchange.getIn().getHeader(


Mime
View raw message