aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-12-16 15:02:40 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-12-30 17:30:09 +0100
commit62894f0c404e71a7b050f3cbecd37b3b08c6061b (patch)
tree18cbe6459cfa1ee827b076f14c4455e11732a10d /sonar-db
parenta120334a10ad2eeb71e744991be120d66e2ea425 (diff)
downloadsonarqube-62894f0c404e71a7b050f3cbecd37b3b08c6061b.tar.gz
sonarqube-62894f0c404e71a7b050f3cbecd37b3b08c6061b.zip
SONAR-7297 Replace Ruby WS api/issues/bulk_change by Java WS
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/rule/RuleDao.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/rule/RuleDao.java b/sonar-db/src/main/java/org/sonar/db/rule/RuleDao.java
index 3385b66084f..b1712c80d8e 100644
--- a/sonar-db/src/main/java/org/sonar/db/rule/RuleDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/rule/RuleDao.java
@@ -20,6 +20,7 @@
package org.sonar.db.rule;
import com.google.common.base.Optional;
+import java.util.Collection;
import java.util.List;
import org.apache.ibatis.session.ResultHandler;
import org.sonar.api.rule.RuleKey;
@@ -62,7 +63,7 @@ public class RuleDao implements Dao {
* Select rules by keys, whatever their status. Returns an empty list
* if the list of {@code keys} is empty, without any db round trip.
*/
- public List<RuleDto> selectByKeys(DbSession session, List<RuleKey> keys) {
+ public List<RuleDto> selectByKeys(DbSession session, Collection<RuleKey> keys) {
return executeLargeInputs(keys, mapper(session)::selectByKeys);
}
@@ -78,7 +79,7 @@ public class RuleDao implements Dao {
return mapper(session).selectAll();
}
- public List<RuleDto> selectByQuery(DbSession session, RuleQuery ruleQuery){
+ public List<RuleDto> selectByQuery(DbSession session, RuleQuery ruleQuery) {
return mapper(session).selectByQuery(ruleQuery);
}
@@ -129,4 +130,3 @@ public class RuleDao implements Dao {
}
}
-