2828import com .fasterxml .jackson .annotation .JsonCreator ;
2929import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
3030
31+ import java .io .Serializable ;
3132import java .text .ParseException ;
3233import java .text .SimpleDateFormat ;
3334import java .util .ArrayList ;
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