Skip to content

Commit 13688dd

Browse files
committed
Allow -> as placeholder separator
1 parent 9514b7d commit 13688dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mug-errorprone/src/main/java/com/google/mu/errorprone/FormatStringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
final class FormatStringUtils {
3434
static final Substring.Pattern PLACEHOLDER_PATTERN =
3535
consecutive(CharMatcher.noneOf("{}")::matches).immediatelyBetween("{", INCLUSIVE, "}", INCLUSIVE);
36-
static final Substring.Pattern PLACEHOLDER_SEPARATOR =
36+
private static final Substring.Pattern PLACEHOLDER_SEPARATOR =
3737
Stream.of("=", "->").map(Substring::first).collect(firstOccurrence());
3838
static final Substring.RepeatingPattern PLACEHOLDER_NAMES_PATTERN =
3939
consecutive(CharMatcher.noneOf("{}")::matches).immediatelyBetween("{", "}").repeatedly();

0 commit comments

Comments
 (0)