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

注释掉无效代码 #4310

Open
wants to merge 2 commits 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/JSONPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -4086,7 +4086,7 @@ protected void deepSet(final Object currentObject, final String propertyName, lo
Map map = (Map) currentObject;

if (map.containsKey(propertyName)) {
Object val = map.get(propertyName);
// Object val = map.get(propertyName);
map.put(propertyName, value);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public void write(JSONSerializer serializer, Object object, BeanContext context)
}

DateFormat dateFormat = new SimpleDateFormat(format);
if (dateFormat == null) {
dateFormat = new SimpleDateFormat(JSON.DEFFAULT_DATE_FORMAT, serializer.locale);
}
// if (dateFormat == null) {
// dateFormat = new SimpleDateFormat(JSON.DEFFAULT_DATE_FORMAT, serializer.locale);
// }
dateFormat.setTimeZone(serializer.timeZone);
String text = dateFormat.format(calendar.getTime());
out.writeString(text);
Expand Down