Prefer StringBuilder where possible.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6101 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2010-07-22 01:20:02 +00:00
parent 1bfc69aa49
commit 7b86f2d8db
@@ -112,8 +112,8 @@ public class GenStreamableTask extends Task
} }
// add readObject() and writeObject() definitions // add readObject() and writeObject() definitions
StringBuffer readbuf = new StringBuffer(READ_OPEN); StringBuilder readbuf = new StringBuilder(READ_OPEN);
StringBuffer writebuf = new StringBuffer(WRITE_OPEN); StringBuilder writebuf = new StringBuilder(WRITE_OPEN);
// see if our parent also implements Streamable // see if our parent also implements Streamable
Class<?> supster = sclass.getSuperclass(); Class<?> supster = sclass.getSuperclass();
@@ -156,7 +156,7 @@ public class GenStreamableTask extends Task
} }
// don't overwrite an existing readObject() or writeObject() // don't overwrite an existing readObject() or writeObject()
StringBuffer methods = new StringBuffer(); StringBuilder methods = new StringBuilder();
if (!sfile.containsString("public void readObject")) { if (!sfile.containsString("public void readObject")) {
methods.append(readbuf); methods.append(readbuf);
} }