aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-dbcleaner-plugin
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-04-27 16:45:37 +0200
committerDavid Gageot <david@gageot.net>2012-04-27 16:48:58 +0200
commitbd90fa7d3ec17f825cac80eebd46cf1ee0412ee9 (patch)
tree92a3ff7db9b91d9afe4684cc90a7a0cc5c3e010c /plugins/sonar-dbcleaner-plugin
parent1a6a18a5c4e73987a72b8176f398477f13074d29 (diff)
downloadsonarqube-bd90fa7d3ec17f825cac80eebd46cf1ee0412ee9.tar.gz
sonarqube-bd90fa7d3ec17f825cac80eebd46cf1ee0412ee9.zip
Code cleaning : Remove unnecessary casts
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin')
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/ProjectPurgePostJob.java2
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/period/DefaultPeriodCleaner.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/ProjectPurgePostJob.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/ProjectPurgePostJob.java
index adaf87e31aa..b844c588f6c 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/ProjectPurgePostJob.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/ProjectPurgePostJob.java
@@ -35,6 +35,6 @@ public class ProjectPurgePostJob implements PostJob {
}
public void executeOn(final Project project, SensorContext context) {
- purgeTask.purge((long) project.getId());
+ purgeTask.purge(project.getId());
}
}
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/period/DefaultPeriodCleaner.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/period/DefaultPeriodCleaner.java
index e81e3cd30ea..016e11eeceb 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/period/DefaultPeriodCleaner.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/period/DefaultPeriodCleaner.java
@@ -44,7 +44,7 @@ public class DefaultPeriodCleaner implements PeriodCleaner {
}
public void purge(Project project, int projectSnapshotId) {
- clean((long) project.getId());
+ clean(project.getId());
}
public void clean(long projectId) {