aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/MemberResolver.java
diff options
context:
space:
mode:
authorTimothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>2021-07-16 10:55:33 -0500
committerTimothy Hoffman <4001421+tim-hoffman@users.noreply.github.com>2021-07-16 10:55:33 -0500
commitb4279f68174129f8b7b6180e6782641884daf013 (patch)
treefdc6f35a9e2c39214d2d9ff76028eff11dd6af07 /src/main/javassist/compiler/MemberResolver.java
parent047f7c71be30d1fce5773c8e9c014052acac14df (diff)
downloadjavassist-b4279f68174129f8b7b6180e6782641884daf013.tar.gz
javassist-b4279f68174129f8b7b6180e6782641884daf013.zip
Replace StringBuffer with StringBuilder and other minor String optimizations
Diffstat (limited to 'src/main/javassist/compiler/MemberResolver.java')
-rw-r--r--src/main/javassist/compiler/MemberResolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/compiler/MemberResolver.java b/src/main/javassist/compiler/MemberResolver.java
index 7fcd5d8a..c01974df 100644
--- a/src/main/javassist/compiler/MemberResolver.java
+++ b/src/main/javassist/compiler/MemberResolver.java
@@ -491,7 +491,7 @@ public class MemberResolver implements TokenId {
int i = classname.lastIndexOf('.');
if (notCheckInner || i < 0)
throw e;
- StringBuffer sbuf = new StringBuffer(classname);
+ StringBuilder sbuf = new StringBuilder(classname);
sbuf.setCharAt(i, '$');
classname = sbuf.toString();
}