durpersi commented on a change in pull request #1313: [CALCITE-3190] 
ElasticsearchJson throws Exception when visitMappingProperties
URL: https://github.com/apache/calcite/pull/1313#discussion_r302829756
 
 

 ##########
 File path: 
elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchJson.java
 ##########
 @@ -97,42 +95,33 @@ static void visitMappingProperties(ObjectNode mapping,
       BiConsumer<String, String> consumer) {
     Objects.requireNonNull(mapping, "mapping");
     Objects.requireNonNull(consumer, "consumer");
-    visitMappingProperties(new ArrayDeque<>(), mapping, consumer);
+    visitMappingProperties("", mapping, consumer);
   }
 
-  private static void visitMappingProperties(Deque<String> path,
-      ObjectNode mapping, BiConsumer<String, String> consumer) {
+  private static void visitMappingProperties(String prefix, ObjectNode mapping,
+                                             BiConsumer<String, String> 
consumer) {
     Objects.requireNonNull(mapping, "mapping");
 
 Review comment:
   @danny0405 thanks your advice, I have fix these extra indents in my new 
commit.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to