From: Teryk Bellahsene Date: Tue, 24 Nov 2015 16:23:24 +0000 (+0100) Subject: Fix quality flaw X-Git-Tag: 5.3-RC1~184 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6ded2a7f1de31e57f646c067a0fc829a3b0306f2;p=sonarqube.git Fix quality flaw --- 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; } }