commit | f817dab2b0f18bfb752ab81a61845a1f02d621af | [log] [tgz] |
---|---|---|
author | Leon Dubinsky <ldubinsky@snapchat.com> | Mon Apr 30 20:47:07 2018 -0700 |
committer | David Pursehouse <dpursehouse@collab.net> | Wed May 02 08:47:30 2018 +0900 |
tree | 29f469f758ab287a7ff09edfcac77f6191f0e207 | |
parent | 1955d81e0ce4909a491a8340a2365fe9971eed81 [diff] |
Wrap account ID in quotes Change-Id: I412e16d9b50cb077f55992780657e7e2e0854059
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/HookArgs.java b/src/main/java/com/googlesource/gerrit/plugins/hooks/HookArgs.java index 5379239..6c4b2fd 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/hooks/HookArgs.java +++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/HookArgs.java
@@ -113,6 +113,12 @@ } private String format(AccountInfo account) { - return identifiedUserFactory.create(new Account.Id(account._accountId)).getNameEmail(); + return String.format( + "\"%s\"", identifiedUserFactory.create(new Account.Id(account._accountId)).getNameEmail()); + } + + @Override + public String toString() { + return String.format("HookArgs: %s", args.toString()); } }