Skip to content

Jackson#268

Open
LiDianguang wants to merge 3 commits into
hcsp:masterfrom
LiDianguang:master
Open

Jackson#268
LiDianguang wants to merge 3 commits into
hcsp:masterfrom
LiDianguang:master

Conversation

@LiDianguang

Copy link
Copy Markdown
  • [] 这个PR解答了当前仓库中的题目(机器人会自动判题并合并当前PR)
  • 这个PR修复了当前仓库中的一些代码缺陷(机器人不会判题,而是由管理员来处理当前PR)

@hcsp-bot

Copy link
Copy Markdown
Contributor

感谢帮助改进我们仓库中的代码!请 @blindpirate 对这个PR进行review。

}
// 序列化:将Student类转换成JSON字符串
public static String serialize(Student student) {}
public static String serialize(Student student ) throws JsonProcessingException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用一个空格分隔非空白字符。
')' 前不应有空格。

// 反序列化:将JSON字符串转换成Student对象
public static Student deserialize(String json) {}
public static Student deserialize(String json) throws JsonProcessingException {
return mapper.readValue(json,Student.class);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

',' 后应有空格。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants