aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-dbcleaner-plugin
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-18 15:45:53 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-18 15:45:53 +0000
commit91132257567b3d416f097a9f55e63e6a34f44c61 (patch)
tree170a63e04ceeb8918ed365faa937337f5a070743 /plugins/sonar-dbcleaner-plugin
parent435981a06db36de3f9f5b60220ae005699c09b2c (diff)
downloadsonarqube-91132257567b3d416f097a9f55e63e6a34f44c61.tar.gz
sonarqube-91132257567b3d416f097a9f55e63e6a34f44c61.zip
SONAR-1663 improve QA
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin')
-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) {