コード例 #1
0
 @Nullable
 @Override
 public Task updateIssue(@NotNull String id) {
   for (TaskRepository repository : getAllRepositories()) {
     if (repository.extractId(id) == null) {
       continue;
     }
     try {
       Task issue = repository.findTask(id);
       if (issue != null) {
         LocalTask localTask = findTask(id);
         if (localTask != null) {
           localTask.updateFromIssue(issue);
           return localTask;
         }
         return issue;
       }
     } catch (Exception e) {
       LOG.info(e);
     }
   }
   return null;
 }