From: Simon Brandhof Date: Tue, 1 Jul 2014 20:55:24 +0000 (+0200) Subject: Fix some quality flaws X-Git-Tag: 4.4-RC1~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f413552b198d92b568d7413fe80990c0484c6455;p=sonarqube.git Fix some quality flaws --- diff --git a/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java b/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java index f6f273a9e68..ce6f8dc6f1b 100644 --- a/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java +++ b/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java @@ -137,8 +137,9 @@ public class ActiveRuleNormalizer extends BaseNormalizer { } @Override - protected Rule toDoc(@Nullable Map fields) { - Preconditions.checkArgument(fields != null, "Cannot construct Rule with null response!!!"); + protected Rule toDoc(Map fields) { + Preconditions.checkNotNull(fields, "Cannot construct Rule with null response"); return new RuleDoc(fields); }