nhaarman
07/03/2016, 12:37 PMtoString()
method uses its own get() methods to generate the string:
public String toString() {
return "TestUser(login=" + this.getLogin() + ", id=" + this.getId() + ", avatarUrl=" + this.getAvatarUrl() + ... + ")";
}
and printing the user.login
uses the same getter:
public final void user() {
User user = this.getMyApplication().getUser();
System.out.println(user);
String var2 = "login=" + user.getLogin();
System.out.println(var2);
}