]> source.dussan.org Git - sonarqube.git/commitdiff
Remove 3 warnings
authorDavid Gageot <david@gageot.net>
Mon, 21 May 2012 14:58:50 +0000 (16:58 +0200)
committerDavid Gageot <david@gageot.net>
Tue, 22 May 2012 05:43:10 +0000 (07:43 +0200)
sonar-core/src/main/java/org/sonar/core/review/ReviewDto.java
sonar-core/src/main/java/org/sonar/core/review/workflow/review/Comment.java

index 5fcc913cdce6fe97b6bbda0fb52fb116545bd486..f0ea3fb26a3c7f37ebaebf0ffdff57c23c0cf18d 100644 (file)
@@ -243,14 +243,12 @@ public final class ReviewDto {
     return ImmutableMap.copyOf(KeyValueFormat.parse(data));
   }
 
-  @SuppressWarnings("unchecked")
   public void removeKeyFromData(String key) {
     Map<String, String> dataMap = KeyValueFormat.parse(data);
     dataMap.remove(key);
     data = KeyValueFormat.format(dataMap);
   }
 
-  @SuppressWarnings("unchecked")
   public void addKeyValueToData(String key, String value) {
     Map<String, String> dataMap = KeyValueFormat.parse(data);
     dataMap.put(key, value);
index 8cdd8b3b55775ca65472bb3768de9369f4a3700a..f040d81b7220d708339cb0e15058a77a3995539e 100644 (file)
@@ -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);
   }