예제 #1
0
 public boolean setMessage(DefaultIssue issue, @Nullable String s, IssueChangeContext context) {
   if (!Objects.equal(s, issue.message())) {
     issue.setMessage(s);
     issue.setUpdateDate(context.date());
     issue.setChanged(true);
     return true;
   }
   return false;
 }
예제 #2
0
 public boolean setPastMessage(
     DefaultIssue issue, @Nullable String previousMessage, IssueChangeContext context) {
   String currentMessage = issue.message();
   issue.setMessage(previousMessage);
   return setMessage(issue, currentMessage, context);
 }