Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Correcting spelling problems #4421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/fastjson/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public static JSONObject parseObject(String text) {
* List<Model> models = JSON.parseObject(jsonStr, new TypeReference<List<Model>>() {});
* </pre>
* @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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public <T> 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);
}
}

Expand Down