formatting the source code

This commit is contained in:
Liesheng Long 2019-05-23 20:09:03 -04:00
parent 2c9c96a811
commit a5a99c28b1
9 changed files with 173 additions and 175 deletions

View File

@ -13,7 +13,6 @@ public class OptionalToJsonExample {
try {
System.out.print("user in json is:" + om.writeValueAsString(user));
} catch (JsonProcessingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

View File

@ -13,7 +13,6 @@ public class SerializeOptionalTypeExample {
serializeObject(user1, "user1.ser");
UserOptionalField user2 = new UserOptionalField();
user2.setUserId(1l);
user2.setFirstName(Optional.of("baeldung"));