From 6ded2a7f1de31e57f646c067a0fc829a3b0306f2 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Tue, 24 Nov 2015 17:23:24 +0100 Subject: [PATCH] Fix quality flaw --- .../org/sonar/server/qualityprofile/ws/SearchDataLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/SearchDataLoader.java b/server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/SearchDataLoader.java index d39178a3468..523ed11e00c 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/SearchDataLoader.java +++ b/server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/SearchDataLoader.java @@ -24,6 +24,7 @@ import com.google.common.base.Predicate; import java.util.ArrayList; import java.util.Comparator; import java.util.List; +import javax.annotation.Nonnull; import javax.annotation.Nullable; import org.apache.commons.lang.builder.CompareToBuilder; import org.sonar.api.resources.Language; @@ -222,7 +223,7 @@ public class SearchDataLoader { private class IsLanguageKnown implements Predicate { @Override - public boolean apply(@Nullable QProfile profile) { + public boolean apply(@Nonnull QProfile profile) { return languages.get(profile.language()) != null; } } -- 2.39.5