From: Julien Lancelot Date: Thu, 6 Feb 2014 08:11:01 +0000 (+0100) Subject: Fix quality flaws X-Git-Tag: 4.2~237 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f26c8af03c4790b72ad30ade0cc5e9f9e5f36546;p=sonarqube.git Fix quality flaws --- 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));