Use double quotes to define string literals not single quotes – How to solve this Elasticsearch exception

Opster Team

August-23,

Log Context

Log “Use double quotes [\”] to define string literals; not single quotes [‘]”” class name is AbstractBuilder.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 }
 }  private static void checkForSingleQuotedString(Source source; String text; int i) {
 if (text.charAt(i) == '\'') {
 throw new ParsingException(source; "Use double quotes [\"] to define string literals; not single quotes [']"");

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.