Skip to content

Commit

Permalink
issue433: using StringBuilder instead of StringBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomassetti committed Jan 11, 2017
1 parent 4b032ce commit ac0eb10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -58,7 +58,7 @@ public JavadocDocument addBlockTag(String tagName) {
* at the start of the line.
*/
public String toText() {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
if (!description.isEmpty()) {
sb.append(description.toText());
sb.append("\n");
Expand Down
Expand Up @@ -72,7 +72,7 @@ public void addElement(JavadocDescriptionElement element) {
}

public String toText() {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
elements.forEach(e -> sb.append(e.toText()));
return sb.toString();
}
Expand Down

0 comments on commit ac0eb10

Please sign in to comment.