diff --git a/src/main/java/com/alibaba/fastjson/JSON.java b/src/main/java/com/alibaba/fastjson/JSON.java index 6159c72b1b..5f6b04829f 100644 --- a/src/main/java/com/alibaba/fastjson/JSON.java +++ b/src/main/java/com/alibaba/fastjson/JSON.java @@ -267,7 +267,7 @@ public static JSONObject parseObject(String text) { * List<Model> models = JSON.parseObject(jsonStr, new TypeReference<List<Model>>() {}); * * @param text json string - * @param type type refernce + * @param type type reference * @param features parser features * @return an object of type T from the string */ diff --git a/src/main/java/com/alibaba/fastjson/parser/DefaultJSONParser.java b/src/main/java/com/alibaba/fastjson/parser/DefaultJSONParser.java index 210a952dea..a7f066a791 100644 --- a/src/main/java/com/alibaba/fastjson/parser/DefaultJSONParser.java +++ b/src/main/java/com/alibaba/fastjson/parser/DefaultJSONParser.java @@ -1278,7 +1278,7 @@ public final void parseArray(final Collection array, Object fieldName) { } } } catch (ClassCastException e) { - throw new JSONException("unkown error", e); + throw new JSONException("unknown error", e); } finally { this.setContext(context); } diff --git a/src/main/java/com/alibaba/fastjson/parser/deserializer/ASMDeserializerFactory.java b/src/main/java/com/alibaba/fastjson/parser/deserializer/ASMDeserializerFactory.java index e2349758cb..b73fb8614a 100644 --- a/src/main/java/com/alibaba/fastjson/parser/deserializer/ASMDeserializerFactory.java +++ b/src/main/java/com/alibaba/fastjson/parser/deserializer/ASMDeserializerFactory.java @@ -706,7 +706,7 @@ private void _deserialze(ClassWriter cw, Context context) { mw.visitJumpInsn(GOTO_W, return_); mw.visitLabel(continue_3); - mw.visitInsn(ICONST_0); // UNKOWN + mw.visitInsn(ICONST_0); // UNKNOWN mw.visitIntInsn(ISTORE, context.var("matchStat")); int fieldListSize = context.fieldInfoList.length; diff --git a/src/main/java/com/alibaba/fastjson/serializer/MiscCodec.java b/src/main/java/com/alibaba/fastjson/serializer/MiscCodec.java index 6735274c74..9dafdee168 100644 --- a/src/main/java/com/alibaba/fastjson/serializer/MiscCodec.java +++ b/src/main/java/com/alibaba/fastjson/serializer/MiscCodec.java @@ -334,7 +334,7 @@ public T deserialze(DefaultJSONParser parser, Type clazz, Object fieldName) try { return (T) InetAddress.getByName(strVal); } catch (UnknownHostException e) { - throw new JSONException("deserialize inet adress error", e); + throw new JSONException("deserialize inet address error", e); } }