formatting the source code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ public class SerializeOptionalTypeExample {
|
||||
|
||||
serializeObject(user1, "user1.ser");
|
||||
|
||||
|
||||
UserOptionalField user2 = new UserOptionalField();
|
||||
user2.setUserId(1l);
|
||||
user2.setFirstName(Optional.of("baeldung"));
|
||||
|
||||
Reference in New Issue
Block a user