From 62894f0c404e71a7b050f3cbecd37b3b08c6061b Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 16 Dec 2016 15:02:40 +0100 Subject: SONAR-7297 Replace Ruby WS api/issues/bulk_change by Java WS --- sonar-db/src/main/java/org/sonar/db/rule/RuleDao.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-db') 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 selectByKeys(DbSession session, List keys) { + public List selectByKeys(DbSession session, Collection keys) { return executeLargeInputs(keys, mapper(session)::selectByKeys); } @@ -78,7 +79,7 @@ public class RuleDao implements Dao { return mapper(session).selectAll(); } - public List selectByQuery(DbSession session, RuleQuery ruleQuery){ + public List selectByQuery(DbSession session, RuleQuery ruleQuery) { return mapper(session).selectByQuery(ruleQuery); } @@ -129,4 +130,3 @@ public class RuleDao implements Dao { } } - -- cgit v1.2.3