Skip to content

Commit

Permalink
Replace StringBuffers with StringBuilders
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Aug 11, 2020
1 parent 3079293 commit 7416ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void testIsTagOutsideOfBackTicks() {

@Test
public void testGetString() {
StringBuffer buffer = new StringBuffer();
StringBuilder buffer = new StringBuilder();
String bufferText = "This is buffer text";
buffer.append(bufferText);
assertEquals(bufferText, StringUtils.getString(buffer));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private static void testMatchingTagPosition(String initialCursorText, String exp
return;
}

StringBuffer sBuffer = new StringBuffer(initialCursorText);
StringBuilder sBuffer = new StringBuilder(initialCursorText);
String actualOutputString;
if (newCursorOffset > -1) {
actualOutputString = sBuffer.insert(newCursorOffset, "|").toString();
Expand Down

0 comments on commit 7416ae2

Please sign in to comment.