Skip to content

Commit d92cf4d

Browse files
committed
let UserProfile implement Serializable
1 parent 824ccb0 commit d92cf4d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/src/main/java/com/auth0/authentication/result/UserProfile.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.fasterxml.jackson.annotation.JsonCreator;
2929
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
3030

31+
import java.io.Serializable;
3132
import java.text.ParseException;
3233
import java.text.SimpleDateFormat;
3334
import java.util.ArrayList;
@@ -42,8 +43,7 @@
4243
* Class that holds the information of a user's profile
4344
*/
4445
@JsonIgnoreProperties(ignoreUnknown = true)
45-
public class UserProfile {
46-
46+
public class UserProfile implements Serializable {
4747
protected String id;
4848
protected String name;
4949
protected String nickname;
@@ -118,6 +118,7 @@ public Date getCreatedAt() {
118118

119119
/**
120120
* Returns extra information of the profile.
121+
*
121122
* @return
122123
*/
123124
public Map<String, Object> getExtraInfo() {
@@ -126,6 +127,7 @@ public Map<String, Object> getExtraInfo() {
126127

127128
/**
128129
* List of the identities from a Identity Provider associated to the user.
130+
*
129131
* @return
130132
*/
131133
public List<UserIdentity> getIdentities() {
@@ -137,7 +139,7 @@ private List<UserIdentity> buildIdentities(List<Map<String, Object>> values) {
137139
return Collections.emptyList();
138140
}
139141
List<UserIdentity> identities = new ArrayList<>(values.size());
140-
for (Map<String, Object> value: values) {
142+
for (Map<String, Object> value : values) {
141143
identities.add(new UserIdentity(value));
142144
}
143145
return identities;

0 commit comments

Comments
 (0)