]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaw
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 24 Nov 2015 16:23:24 +0000 (17:23 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 24 Nov 2015 16:23:24 +0000 (17:23 +0100)
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/SearchDataLoader.java

index d39178a3468889e7cd2da6078c3789e5d4d5349f..523ed11e00c50a7c683ad5513efac881b39b0930 100644 (file)
@@ -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<QProfile> {
     @Override
-    public boolean apply(@Nullable QProfile profile) {
+    public boolean apply(@Nonnull QProfile profile) {
       return languages.get(profile.language()) != null;
     }
   }