You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/01 12:45:36 UTC
[commons-bcel] 07/49: StringBuffer -> StringBuilder.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit 10f0b692996e22f4d4e936b4d4c004cbb11036dd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 1 08:17:19 2022 -0400
StringBuffer -> StringBuilder.
---
src/examples/Mini/ASTFunDecl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/examples/Mini/ASTFunDecl.java b/src/examples/Mini/ASTFunDecl.java
index 46ed3a3f..ea609e30 100644
--- a/src/examples/Mini/ASTFunDecl.java
+++ b/src/examples/Mini/ASTFunDecl.java
@@ -344,7 +344,7 @@ public class ASTFunDecl extends SimpleNode implements MiniParserTreeConstants, o
*/
@Override
public String toString() {
- final StringBuffer buf = new StringBuffer();
+ final StringBuilder buf = new StringBuilder();
buf.append(jjtNodeName[id] + " " + name + "(");
for (int i = 0; i < argv.length; i++) {
@@ -431,7 +431,7 @@ public class ASTFunDecl extends SimpleNode implements MiniParserTreeConstants, o
}
private static String getVarDecls() {
- final StringBuffer buf = new StringBuffer(" int ");
+ final StringBuilder buf = new StringBuilder(" int ");
for (int i = 0; i < max_size; i++) {
buf.append("_s" + i);