[json-simple]Use LinkedHashMap in JSONObject

This commit is contained in:
yushijinhun 2018-12-30 15:03:26 +08:00
parent b59400f3dd
commit def9d9614e
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4
2 changed files with 2 additions and 3 deletions

View file

@ -7,8 +7,8 @@ package moe.yushi.authlibinjector.internal.org.json.simple;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
/**
@ -16,7 +16,7 @@ import java.util.Map;
*
* @author FangYidong<fangyidong@yahoo.com.cn>
*/
public class JSONObject extends HashMap<String, Object> implements JSONAware, JSONStreamAware {
public class JSONObject extends LinkedHashMap<String, Object> implements JSONAware, JSONStreamAware {
private static final long serialVersionUID = -503443796854799292L;

View file

@ -9,7 +9,6 @@ import java.io.Reader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Collection;
// import java.util.List;
import java.util.Map;
import moe.yushi.authlibinjector.internal.org.json.simple.parser.JSONParser;
import moe.yushi.authlibinjector.internal.org.json.simple.parser.ParseException;