mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-10 04:19:56 +00:00
Changed the order of name and age in the toString method
This commit is contained in:
@@ -7,6 +7,6 @@ public class GetterSetterExample {
|
||||
private @Setter(AccessLevel.PROTECTED) String name;
|
||||
|
||||
@Override public String toString() {
|
||||
return String.format("%s (age: %d)", age, name);
|
||||
return String.format("%s (age: %d)", name, age);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user