diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2017-10-12 11:53:18 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk@users.noreply.github.com> | 2017-10-16 09:27:14 +0200 |
commit | 61c8a63a9cd8a04c2bc9fd228d12e7d6544ded13 (patch) | |
tree | e509215bf5a938c595b4d1241cabe064e153f9fc | |
parent | 8500b948caa9c604a2f9fbbbb5b70b6189be0373 (diff) | |
download | sonarqube-61c8a63a9cd8a04c2bc9fd228d12e7d6544ded13.tar.gz sonarqube-61c8a63a9cd8a04c2bc9fd228d12e7d6544ded13.zip |
Fix quality flaws
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) { |