Skip to content

Commit 7fdf40c

Browse files
authored
Update JSONObject.java
1 parent 12bbe8c commit 7fdf40c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JSONObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public String toString() {
161161
/**
162162
* The map where the JSONObject's properties are kept.
163163
*/
164-
private final Map<String, Object> map;
164+
protected final Map<String, Object> map;
165165

166166
/**
167167
* It is sometimes more convenient and less ambiguous to have a
@@ -181,7 +181,7 @@ public JSONObject() {
181181
// implementations to rearrange their items for a faster element
182182
// retrieval based on associative access.
183183
// Therefore, an implementation mustn't rely on the order of the item.
184-
this.map = new HashMap<String, Object>();
184+
this.map = new LinkedHashMap<String, Object>();
185185
}
186186

187187
/**

0 commit comments

Comments
 (0)