mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 16:00:51 -07:00
partially revert changes
This commit is contained in:
parent
05074386d3
commit
7cad4c3b26
3 changed files with 10 additions and 10 deletions
6
CDL.java
6
CDL.java
|
@ -224,7 +224,7 @@ public class CDL {
|
|||
*/
|
||||
public static JSONArray toJSONArray(JSONArray names, JSONTokener x)
|
||||
throws JSONException {
|
||||
if (names == null || names.isEmpty()) {
|
||||
if (names == null || names.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
JSONArray ja = new JSONArray();
|
||||
|
@ -235,7 +235,7 @@ public class CDL {
|
|||
}
|
||||
ja.put(jo);
|
||||
}
|
||||
if (ja.isEmpty()) {
|
||||
if (ja.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
return ja;
|
||||
|
@ -272,7 +272,7 @@ public class CDL {
|
|||
*/
|
||||
public static String toString(JSONArray names, JSONArray ja)
|
||||
throws JSONException {
|
||||
if (names == null || names.isEmpty()) {
|
||||
if (names == null || names.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue