aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/issue
diff options
context:
space:
mode:
authorJanos Gyerik <janos.gyerik@sonarsource.com>2018-07-09 12:35:54 +0200
committerSonarTech <sonartech@sonarsource.com>2018-07-17 20:21:24 +0200
commita921ee8db85cdea463a802fe2a1bacacefd08002 (patch)
tree7211eb6d4042064fda0d0ae1481ea5a424ffbede /server/sonar-db-dao/src/main/java/org/sonar/db/issue
parent494faa4ab6425a54f40a891024034b1d8fe14647 (diff)
downloadsonarqube-a921ee8db85cdea463a802fe2a1bacacefd08002.tar.gz
sonarqube-a921ee8db85cdea463a802fe2a1bacacefd08002.zip
SONAR-10992 Set default value for types of issues/search: bug, vulnerability, code smell
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/issue')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueTesting.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueTesting.java b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueTesting.java
index 7eaebeb4eb5..4c08abc9295 100644
--- a/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueTesting.java
+++ b/server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueTesting.java
@@ -51,7 +51,8 @@ public class IssueTesting {
return new IssueDto()
.setKee("uuid_" + randomAlphabetic(5))
.setRule(rule)
- .setType(RuleType.values()[nextInt(RuleType.values().length)])
+ // exclude security hotspots
+ .setType(RuleType.values()[nextInt(RuleType.values().length - 1)])
.setProject(project)
.setComponent(file)
.setStatus(Issue.STATUS_OPEN)