Skip to content

Commit

Permalink
Fix stringbuilder to stringBuffer to make the java (non google versio…
Browse files Browse the repository at this point in the history
…n) happy.

Otherwise this code does not compile outside google.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122885192
  • Loading branch information
guptasu committed May 21, 2016
1 parent a2069ab commit b9463b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static String removeCrossReference(String text) {
Pattern pattern = Pattern.compile("\\[(?<name>[^\\]]+?)\\]( |\\n)*"
+ "\\[(?<link>[^\\]]*?)\\]");
Matcher matcher = pattern.matcher(text);
StringBuilder result = new StringBuilder();
StringBuffer result = new StringBuffer();
while (matcher.find()) {
String replacementText = matcher.group("name");
replacementText = Matcher.quoteReplacement(replacementText);
Expand Down

0 comments on commit b9463b7

Please sign in to comment.