From f413552b198d92b568d7413fe80990c0484c6455 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 1 Jul 2014 22:55:24 +0200 Subject: [PATCH] Fix some quality flaws --- .../server/qualityprofile/index/ActiveRuleNormalizer.java | 5 +++-- .../main/java/org/sonar/server/rule/index/RuleIndex.java | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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); } -- 2.39.5