diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-02-24 21:11:32 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-02-29 13:26:54 +0100 |
commit | f334975c430c943984c1b23f40571b81400f1f39 (patch) | |
tree | 27571219e33838cb650855bb87982ae60ef90c98 /sonar-db | |
parent | 8291997a20ad9fff94f16bdf690f7d228c4e7727 (diff) | |
download | sonarqube-f334975c430c943984c1b23f40571b81400f1f39.tar.gz sonarqube-f334975c430c943984c1b23f40571b81400f1f39.zip |
SONAR-7330 Remove last usage of old RuleIndex
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/DbSession.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/DbSession.java b/sonar-db/src/main/java/org/sonar/db/DbSession.java index a2d97d2a5f1..08e2b4ba04d 100644 --- a/sonar-db/src/main/java/org/sonar/db/DbSession.java +++ b/sonar-db/src/main/java/org/sonar/db/DbSession.java @@ -35,22 +35,28 @@ public class DbSession implements SqlSession { private List<ClusterAction> actions; - private WorkQueue queue; private SqlSession session; private int actionCount; public DbSession(WorkQueue queue, SqlSession session) { this.actionCount = 0; this.session = session; - this.queue = queue; this.actions = new ArrayList<>(); } + /** + * @deprecated since 5.5, not used anymore + */ + @Deprecated public void enqueue(ClusterAction action) { actionCount++; this.actions.add(action); } + /** + * @deprecated since 5.5, not used anymore + */ + @Deprecated public int getActionCount() { return actionCount; } @@ -58,14 +64,12 @@ public class DbSession implements SqlSession { @Override public void commit() { session.commit(); - queue.enqueue(actions); actions.clear(); } @Override public void commit(boolean force) { session.commit(force); - queue.enqueue(actions); actions.clear(); } |