Skip to content

Commit

Permalink
Replace internal StringBuffer with StringBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 10, 2023
1 parent b3056c1 commit 9ed06e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/examples/Mini/ASTFunDecl.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public void code(final PrintWriter out) {
}

if (!ignore) {
final StringBuffer buf = new StringBuffer();
final StringBuilder buf = new StringBuilder();

body.code(buf);
out.println(getVarDecls());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/bcel/util/InstructionFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public final Iterator<InstructionHandle[]> search(final String pattern, final In
// }

// private static final String pattern2string( String pattern, boolean make_string ) {
// StringBuffer buf = new StringBuffer();
// StringBuilder buf = new StringBuilder();
// for (int i = 0; i < pattern.length(); i++) {
// char ch = pattern.charAt(i);
// if (ch >= OFFSET) {
Expand Down

0 comments on commit 9ed06e4

Please sign in to comment.