From: David Gageot Date: Mon, 21 May 2012 14:58:50 +0000 (+0200) Subject: Remove 3 warnings X-Git-Tag: 3.1~145 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcd5c9f345d5c5e619034f2806e87b260544f75e;p=sonarqube.git Remove 3 warnings --- diff --git a/sonar-core/src/main/java/org/sonar/core/review/ReviewDto.java b/sonar-core/src/main/java/org/sonar/core/review/ReviewDto.java index 5fcc913cdce..f0ea3fb26a3 100644 --- a/sonar-core/src/main/java/org/sonar/core/review/ReviewDto.java +++ b/sonar-core/src/main/java/org/sonar/core/review/ReviewDto.java @@ -243,14 +243,12 @@ public final class ReviewDto { return ImmutableMap.copyOf(KeyValueFormat.parse(data)); } - @SuppressWarnings("unchecked") public void removeKeyFromData(String key) { Map dataMap = KeyValueFormat.parse(data); dataMap.remove(key); data = KeyValueFormat.format(dataMap); } - @SuppressWarnings("unchecked") public void addKeyValueToData(String key, String value) { Map dataMap = KeyValueFormat.parse(data); dataMap.put(key, value); diff --git a/sonar-core/src/main/java/org/sonar/core/review/workflow/review/Comment.java b/sonar-core/src/main/java/org/sonar/core/review/workflow/review/Comment.java index 8cdd8b3b557..f040d81b722 100644 --- a/sonar-core/src/main/java/org/sonar/core/review/workflow/review/Comment.java +++ b/sonar-core/src/main/java/org/sonar/core/review/workflow/review/Comment.java @@ -52,6 +52,7 @@ public class Comment { return new ReflectionToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).toString(); } + @Override public Comment clone() { return new Comment().setMarkdownText(markdownText).setUserId(userId); }