aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-27 15:13:07 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-07-05 21:02:57 +0200
commite964104ca94fdd7b975dedbbe8b15eb578b41f53 (patch)
tree9aa69289a9ac737e604ae7b638495d0dfc124654 /server/sonar-db-core
parent0e05020d62dbe8d7c088e4bdb0de4f1cd2e13fe9 (diff)
downloadsonarqube-e964104ca94fdd7b975dedbbe8b15eb578b41f53.tar.gz
sonarqube-e964104ca94fdd7b975dedbbe8b15eb578b41f53.zip
Deprecate DatabaseUtils#repeatCondition()
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r--server/sonar-db-core/src/main/java/org/sonar/db/DatabaseUtils.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-db-core/src/main/java/org/sonar/db/DatabaseUtils.java b/server/sonar-db-core/src/main/java/org/sonar/db/DatabaseUtils.java
index 777ca12b489..6e8f7baa74f 100644
--- a/server/sonar-db-core/src/main/java/org/sonar/db/DatabaseUtils.java
+++ b/server/sonar-db-core/src/main/java/org/sonar/db/DatabaseUtils.java
@@ -236,6 +236,10 @@ public class DatabaseUtils {
}
}
+ /**
+ * @deprecated replaced by Commons Land {@code StringUtils.repeat(sql, separator, count)
+ */
+ @Deprecated
public static String repeatCondition(String sql, int count, String separator) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < count; i++) {