aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-10-12 11:53:18 +0200
committerTeryk Bellahsene <teryk@users.noreply.github.com>2017-10-16 09:27:14 +0200
commit61c8a63a9cd8a04c2bc9fd228d12e7d6544ded13 (patch)
treee509215bf5a938c595b4d1241cabe064e153f9fc
parent8500b948caa9c604a2f9fbbbb5b70b6189be0373 (diff)
downloadsonarqube-61c8a63a9cd8a04c2bc9fd228d12e7d6544ded13.tar.gz
sonarqube-61c8a63a9cd8a04c2bc9fd228d12e7d6544ded13.zip
Fix quality flaws
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/notification/NewIssuesNotification.java2
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/permission/ws/ProjectWsRef.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/notification/NewIssuesNotification.java b/server/sonar-server/src/main/java/org/sonar/server/issue/notification/NewIssuesNotification.java
index bc630d529a3..ff3f85f29fe 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/notification/NewIssuesNotification.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/notification/NewIssuesNotification.java
@@ -159,7 +159,7 @@ public class NewIssuesNotification extends Notification {
int i = 1;
for (Map.Entry<String, MetricStatsInt> tagStats : fiveBiggest(stats.getDistributedMetricStats(metric), MetricStatsInt::getOnLeak)) {
setFieldValue(metric + DOT + i + COUNT, String.valueOf(tagStats.getValue().getOnLeak()));
- setFieldValue(metric + DOT + i + ".label", tagStats.getKey());
+ setFieldValue(metric + DOT + i + LABEL, tagStats.getKey());
i++;
}
}
diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/ProjectWsRef.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/ProjectWsRef.java
index a93c8bb5e87..02bcb3d3025 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/ProjectWsRef.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/ProjectWsRef.java
@@ -39,7 +39,7 @@ public class ProjectWsRef {
private ProjectWsRef(@Nullable String uuid, @Nullable String key) {
this.uuid = uuid;
this.key = key;
- checkRequest(this.uuid != null ^ this.key != null, "Project id or project key can be provided, not both.");
+ checkRequest(this.uuid != null ^ this.key != null, MSG_ID_OR_KEY_MUST_BE_PROVIDED);
}
public static Optional<ProjectWsRef> newOptionalWsProjectRef(@Nullable String uuid, @Nullable String key) {