From f26c8af03c4790b72ad30ade0cc5e9f9e5f36546 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 6 Feb 2014 09:11:01 +0100 Subject: [PATCH] Fix quality flaws --- .../src/main/java/org/sonar/batch/components/PastSnapshot.java | 2 +- .../org/sonar/batch/components/TimeMachineConfiguration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshot.java b/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshot.java index 91285fff70a..d411127ed52 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshot.java +++ b/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshot.java @@ -107,7 +107,7 @@ public class PastSnapshot { return targetDate; } - public PastSnapshot clone(){ + public PastSnapshot clonePastSnapshot(){ PastSnapshot clone = new PastSnapshot(mode, targetDate, projectSnapshot); clone.setIndex(index); clone.setModeParameter(modeParameter); diff --git a/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java b/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java index 23e33c5521f..94c24d1ec50 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java +++ b/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java @@ -58,7 +58,7 @@ public class TimeMachineConfiguration implements BatchExtension { for (PastSnapshot projectPastSnapshot : periodsDefinition.getRootProjectPastSnapshots()) { Snapshot snapshot = findSnapshot(projectPastSnapshot.getProjectSnapshot()); - PastSnapshot pastSnapshot = projectPastSnapshot.clone(); + PastSnapshot pastSnapshot = projectPastSnapshot.clonePastSnapshot(); modulePastSnapshots.add(pastSnapshot); // When no snapshot is found, date of the period is null periods.add(new Period(pastSnapshot.getIndex(), snapshot != null ? snapshot.getCreatedAt() : null)); -- 2.39.5