We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1736a60 commit 3997a90Copy full SHA for 3997a90
Property.java
@@ -40,7 +40,9 @@ public class Property {
40
* @throws JSONException
41
*/
42
public static JSONObject toJSONObject(java.util.Properties properties) throws JSONException {
43
- JSONObject jo = new JSONObject(properties == null ? 0 : properties.size());
+ // can't use the new constructor for Android support
44
+ // JSONObject jo = new JSONObject(properties == null ? 0 : properties.size());
45
+ JSONObject jo = new JSONObject();
46
if (properties != null && !properties.isEmpty()) {
47
Enumeration<?> enumProperties = properties.propertyNames();
48
while(enumProperties.hasMoreElements()) {
0 commit comments