aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java
index 1e514c2b466..e947885ecac 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java
@@ -41,15 +41,15 @@ public final class PurgeRunner implements PostJob {
public PurgeRunner(DatabaseSession session, Snapshot snapshot, Purge[] purges) {
this.session = session;
this.snapshot = snapshot;
- this.purges = purges;
+ this.purges = purges.clone();
this.deprecatedPurges = new org.sonar.api.batch.Purge[0];
}
public PurgeRunner(DatabaseSession session, Snapshot snapshot, Purge[] purges, org.sonar.api.batch.Purge[] deprecatedPurges) {
this.session = session;
this.snapshot = snapshot;
- this.purges = purges;
- this.deprecatedPurges = deprecatedPurges;
+ this.purges = purges.clone();
+ this.deprecatedPurges = deprecatedPurges.clone();
}
public void executeOn(Project project, SensorContext context) {