We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23c3a7a commit 28c5478Copy full SHA for 28c5478
mug-errorprone/src/main/java/com/google/mu/errorprone/Placeholder.java
@@ -53,10 +53,10 @@ public String toString() {
53
// Find the full line surrounding the placeholder.
54
int snippetStart = match.index();
55
int snippetEnd = match.index() + match.length();
56
- while (snippetStart > 0 && context.codePointAt(snippetStart - 1) != '\n') {
+ while (snippetStart > 0 && context.charAt(snippetStart - 1) != '\n') {
57
snippetStart--;
58
}
59
- while (snippetEnd < context.length() && context.codePointAt(snippetEnd) != '\n') {
+ while (snippetEnd < context.length() && context.charAt(snippetEnd) != '\n') {
60
snippetEnd++;
61
62
0 commit comments