This commit is contained in:
Looly 2024-10-01 00:31:02 +08:00
parent 0e75e75f5d
commit 06ada31d88

View File

@ -293,10 +293,6 @@ public class JSONFactory {
*/ */
public JSONArray parseArray(final Object obj) { public JSONArray parseArray(final Object obj) {
final JSONMapper mapper = getMapper(); final JSONMapper mapper = getMapper();
// if (obj instanceof JSONObject) {
// return mapper.mapFromJSONObject((JSONObject) obj);
// }
if (obj instanceof CharSequence) { if (obj instanceof CharSequence) {
return (JSONArray) mapper.map((CharSequence) obj); return (JSONArray) mapper.map((CharSequence) obj);
} }