Add Change#toString(), after all these years

Change-Id: I1540070212dd4ba494db624d98c00297798da2ae
This commit is contained in:
Dave Borowitz
2015-01-30 11:57:15 -08:00
parent cafc080ceb
commit 6b14a44e9b
2 changed files with 17 additions and 1 deletions

View File

@@ -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 {