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

@@ -598,4 +598,14 @@ public final class Change {
public void setTopic(String topic) {
this.topic = topic;
}
@Override
public String toString() {
return new StringBuilder(getClass().getSimpleName())
.append('{').append(changeId)
.append(" (").append(changeKey).append("), ")
.append("dest=").append(dest).append(", ")
.append("status=").append(status).append('}')
.toString();
}
}