aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/tools')
-rw-r--r--src/main/javassist/tools/rmi/StubGenerator.java2
-rw-r--r--src/main/javassist/tools/web/Webserver.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/tools/rmi/StubGenerator.java b/src/main/javassist/tools/rmi/StubGenerator.java
index b0817ab5..a06ebc60 100644
--- a/src/main/javassist/tools/rmi/StubGenerator.java
+++ b/src/main/javassist/tools/rmi/StubGenerator.java
@@ -183,7 +183,7 @@ public class StubGenerator implements Translator {
if (!rtclass.isArray())
name = rtclass.getName();
else {
- StringBuffer sbuf = new StringBuffer();
+ StringBuilder sbuf = new StringBuilder();
do {
sbuf.append("[]");
rtclass = rtclass.getComponentType();
diff --git a/src/main/javassist/tools/web/Webserver.java b/src/main/javassist/tools/web/Webserver.java
index d90e8e34..99e15faf 100644
--- a/src/main/javassist/tools/web/Webserver.java
+++ b/src/main/javassist/tools/web/Webserver.java
@@ -222,7 +222,7 @@ public class Webserver {
}
private String readLine(InputStream in) throws IOException {
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
int c;
while ((c = in.read()) >= 0 && c != 0x0d)
buf.append((char)c);