Merge branch 'stable-2.15' into stable-2.16
* stable-2.15: AccountExternalIdInfo: Add implementation of toString Change-Id: Ice9f69b827506e2ea5901c1b59716965bd16d616
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
import static com.google.common.base.MoreObjects.toStringHelper;
|
||||
|
||||
import com.google.common.collect.ComparisonChain;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -47,4 +49,14 @@ public class AccountExternalIdInfo implements Comparable<AccountExternalIdInfo>
|
||||
public int hashCode() {
|
||||
return Objects.hash(identity, emailAddress, trusted, canDelete);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return toStringHelper(this)
|
||||
.add("identity", identity)
|
||||
.add("emailAddress", emailAddress)
|
||||
.add("trusted", trusted)
|
||||
.add("canDelete", canDelete)
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user