-
-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Description
In the LiveDataMapper class, there is a method public User getUser(JsonObject jsonElement). Within this method, a User object is being created with the following line:
var user = new User(id, name, profileName, picture, followers, followingCount, new ArrayList<>());The issue is that the parameters followingCount and followers are in the wrong order. They need to be swapped to match the correct order expected by the User class constructor.
Here is the User constructor :
public User(Long id,
String name,
String profileName,
Picture picture,
long following,
long followers,
List<Badge> badges) {
this.id = id;
this.name = name;
this.profileName = profileName;
this.picture = picture;
this.following = following;
this.followers = followers;
this.badges = badges;
}
Metadata
Metadata
Assignees
Labels
No labels