예제 #1
0
 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 "";
   }
 }
예제 #2
0
 private static boolean isGerritServer(AccountInfo account) {
   return account._accountId() == 0 && Util.C.messageNoAuthor().equals(account.name());
 }