]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 7 Feb 2014 14:03:43 +0000 (15:03 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 7 Feb 2014 14:03:43 +0000 (15:03 +0100)
sonar-server/src/main/java/org/sonar/server/rule/Rule.java

index cdbb13f3beb4653ff7c5a8de8e91528efebc77dc..0e37c6e693d34efbdc8cf933ac0dafec628eafde 100644 (file)
@@ -88,6 +88,7 @@ public class Rule {
     return description;
   }
 
+  @CheckForNull
   public String severity() {
     return severity;
   }
@@ -188,7 +189,10 @@ public class Rule {
       return this;
     }
 
-    public Builder setSeverity(String severity) {
+    /**
+     * Should only be null for manual rule
+     */
+    public Builder setSeverity(@Nullable String severity) {
       this.severity = severity;
       return this;
     }