Skip to content

Commit c882783

Browse files
authored
Format line 2755 in JSONObject.java
1 parent aac376f commit c882783

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/json/JSONObject.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,13 +2752,14 @@ private static Object wrap(Object object, Set<Object> objectsRecord, int recursi
27522752
if (NULL.equals(object)) {
27532753
return NULL;
27542754
}
2755-
if (object instanceof JSONObject || object instanceof JSONArray || object instanceof JSONString
2755+
if (object instanceof JSONObject || object instanceof JSONArray
2756+
|| object instanceof JSONString || object instanceof String
27562757
|| object instanceof Byte || object instanceof Character
27572758
|| object instanceof Short || object instanceof Integer
27582759
|| object instanceof Long || object instanceof Boolean
27592760
|| object instanceof Float || object instanceof Double
2760-
|| object instanceof String || object instanceof BigInteger
2761-
|| object instanceof BigDecimal || object instanceof Enum) {
2761+
|| object instanceof BigInteger || object instanceof BigDecimal
2762+
|| object instanceof Enum) {
27622763
return object;
27632764
}
27642765

0 commit comments

Comments
 (0)