private boolean isSameKey(DefaultIssue newIssue, IssueDto pastIssue) {
return Objects.equal(newIssue.key(), pastIssue.getUuid());
}
private void mapIssue(DefaultIssue newIssue, IssueDto pastIssue, Multimap<Integer, IssueDto> lastIssuesByRule, Map<DefaultIssue, IssueDto> issueMap) {
if (pastIssue != null) {
<BUG>newIssue.setCreatedAt(pastIssue.getCreatedAt());
newIssue.setKey(pastIssue.getUuid());</BUG>
newIssue.setNew(false);
lastIssuesByRule.remove(getRule(newIssue), pastIssue);
issueMap.put(newIssue, pastIssue);

private boolean isSameKey(DefaultIssue newIssue, IssueDto pastIssue) {
return Objects.equal(newIssue.key(), pastIssue.getUuid());
}
private void mapIssue(DefaultIssue newIssue, IssueDto pastIssue, Multimap<Integer, IssueDto> lastIssuesByRule, Map<DefaultIssue, IssueDto> issueMap) {
if (pastIssue != null) {
newIssue.setCreatedAt(pastIssue.getCreatedAt());
newIssue.setUpdatedAt(project.getAnalysisDate());
newIssue.setKey(pastIssue.getUuid());
newIssue.setNew(false);
lastIssuesByRule.remove(getRule(newIssue), pastIssue);
issueMap.put(newIssue, pastIssue);
