*/
package org.sonar.server.computation.task.projectanalysis.issue;
-import java.time.format.DateTimeFormatter;
import java.util.Comparator;
import java.util.Date;
import java.util.HashSet;
import java.util.function.Supplier;
import java.util.stream.IntStream;
import org.sonar.api.utils.DateUtils;
-import org.sonar.api.utils.log.Logger;
-import org.sonar.api.utils.log.Loggers;
import org.sonar.core.issue.DefaultIssue;
import org.sonar.core.issue.IssueChangeContext;
import org.sonar.db.protobuf.DbCommons.TextRange;
*/
public class IssueCreationDateCalculator extends IssueVisitor {
- private static final Logger LOGGER = Loggers.get(IssueCreationDateCalculator.class);
-
private final ScmInfoRepository scmInfoRepository;
private final IssueFieldsSetter issueUpdater;
private final AnalysisMetadataHolder analysisMetadataHolder;
}
private void updateDate(DefaultIssue issue, Date scmDate) {
- LOGGER.debug("Issue {} seems to be raised in consequence of a modification of the quality profile. Backdating the issue to {}.", issue,
- DateTimeFormatter.ISO_INSTANT.format(scmDate.toInstant()));
issueUpdater.setCreationDate(issue, scmDate, changeContext);
}