diff --git a/CDL.java b/CDL.java index 1c7df32..6bc41dc 100644 --- a/CDL.java +++ b/CDL.java @@ -55,7 +55,7 @@ public class CDL { private static String getValue(JSONTokener x) throws JSONException { char c; char q; - StringBuffer sb; + StringBuilder sb; do { c = x.next(); } while (c == ' ' || c == '\t'); @@ -65,7 +65,7 @@ public class CDL { case '"': case '\'': q = c; - sb = new StringBuffer(); + sb = new StringBuilder(); for (;;) { c = x.next(); if (c == q) { @@ -275,7 +275,7 @@ public class CDL { if (names == null || names.length() == 0) { return null; } - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); for (int i = 0; i < ja.length(); i += 1) { JSONObject jo = ja.optJSONObject(i); if (jo != null) {