Add Change#toString(), after all these years
Change-Id: I1540070212dd4ba494db624d98c00297798da2ae
This commit is contained in:
@@ -656,7 +656,13 @@ public class ChangeData {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return MoreObjects.toStringHelper(this).addValue(getId()).toString();
|
||||
MoreObjects.ToStringHelper h = MoreObjects.toStringHelper(this);
|
||||
if (change != null) {
|
||||
h.addValue(change);
|
||||
} else {
|
||||
h.addValue(legacyId);
|
||||
}
|
||||
return h.toString();
|
||||
}
|
||||
|
||||
public static class ChangedLines {
|
||||
|
||||
Reference in New Issue
Block a user