void attach(final ProjectUpdatedEvent event) { checkNotNull(this.entity,"Entity cannot be null"); checkNotNull(this.target,"Target cannot be null"); checkNotNull(this.action,"Action cannot be null"); final Map<String, List<Change>> entityChanges = event.getChanges().get(this.entity); List<Change> targetChanges=entityChanges.get(this.target); if(targetChanges==null) { targetChanges=Lists.newArrayList(); entityChanges.put(this.target,targetChanges); } targetChanges.add(Change.create(this.action,this.authors)); }
final Set<String> deletedIssues=Sets.newLinkedHashSet(); for(final Entry<Entity, Map<String, List<Change>>> entry:event.getChanges().entrySet()) { switch(entry.getKey()) { case COMPONENT: