mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-12-15 15:41:05 +08:00
Replaced tab chars, updated versions
This commit is contained in:
@@ -31,7 +31,7 @@ import java.util.Properties;
|
||||
/**
|
||||
* Converts a Property file data into JSONObject and back.
|
||||
* @author JSON.org
|
||||
* @version 2014-05-03
|
||||
* @version 2015-05-05
|
||||
*/
|
||||
public class Property {
|
||||
/**
|
||||
@@ -43,7 +43,7 @@ public class Property {
|
||||
public static JSONObject toJSONObject(java.util.Properties properties) throws JSONException {
|
||||
JSONObject jo = new JSONObject();
|
||||
if (properties != null && !properties.isEmpty()) {
|
||||
Enumeration enumProperties = properties.propertyNames();
|
||||
Enumeration<?> enumProperties = properties.propertyNames();
|
||||
while(enumProperties.hasMoreElements()) {
|
||||
String name = (String)enumProperties.nextElement();
|
||||
jo.put(name, properties.getProperty(name));
|
||||
|
||||
Reference in New Issue
Block a user