Add Change#toString(), after all these years
Change-Id: I1540070212dd4ba494db624d98c00297798da2ae
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user