zjffdu commented on a change in pull request #3796:
URL: https://github.com/apache/zeppelin/pull/3796#discussion_r439977364



##########
File path: 
zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/util/SqlSplitter.java
##########
@@ -79,11 +81,9 @@ public SqlSplitter(String... 
additionalSingleCommentPrefixList) {
       }
 
       // end of multiple line comment
-      if (multiLineComment && character == '/' && text.charAt(index - 1) == 
'*') {
+      if (multiLineComment && (index - 1) >= 0 && text.charAt(index - 1) == '/'

Review comment:
       Sorry, I don't get it. Here I just check whether it is the end of 
multiple comment via checking whether (index-1) is `/` and (index-2) is `*`




----------------------------------------------------------------
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]


Reply via email to