Use StringBuilder in parseContentDepth()

instead of StringBuffer, which comes with unnecessary synchronization
overhead.
This commit is contained in:
Florian Schmaus 2014-05-10 10:53:03 +02:00
parent 5618da4e23
commit 82654cd15e
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public class PacketParserUtils {
}
public static String parseContentDepth(XmlPullParser parser, int depth) throws XmlPullParserException, IOException {
StringBuffer content = new StringBuffer();
StringBuilder content = new StringBuilder();
while (!(parser.next() == XmlPullParser.END_TAG && parser.getDepth() == depth)) {
content.append(parser.getText());
}