private static String name(AccountInfo ai) { if (ai.email() != null) { return ai.email(); } else if (ai.name() != null) { return ai.name(); } else if (ai._accountId() != 0) { return "" + ai._accountId(); } else { return ""; } }
private static boolean isGerritServer(AccountInfo account) { return account._accountId() == 0 && Util.C.messageNoAuthor().equals(account.name()); }