Skip to content

Commit d67fc7a

Browse files
committed
Merged for javadoc
2 parents 798dae6 + 453199c commit d67fc7a

File tree

1 file changed

+3
-2
lines changed
  • dot-parse/src/main/java/com/google/common/labs/parse

1 file changed

+3
-2
lines changed

dot-parse/src/main/java/com/google/common/labs/parse/Parser.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ public static Parser<String> string(String value) {
235235
* quotedStringWithEscapes('"', unicodeEscaped.or(chars(1))).parse("foo\\uD83D");
236236
* }</pre>
237237
*/
238-
public static Parser<String> quotedStringWithEscapes(char quoteChar, Parser<String> escaped) {
239-
Parser<String> escape = string("\\").then(escaped);
238+
public static Parser<String> quotedStringWithEscapes(
239+
char quoteChar, Parser<? extends CharSequence> escaped) {
240+
var escape = string("\\").then(escaped);
240241
checkArgument(quoteChar != '\\', "quoteChar cannot be '\\'");
241242
checkArgument(!Character.isISOControl(quoteChar), "quoteChar cannot be a control character");
242243
String quoteString = Character.toString(quoteChar);

0 commit comments

Comments
 (0)