javax.annotation.CheckForNull



API Populatity

6 Client projects

Project: javax

Package: javax.annotation

Project SonarSource/sonarqube in file ...a.org.sonar.core.component.PerspectiveBuilder.java (2013-04-16)
@@ -24,6 +24,8 @@ import org.sonar.api.ServerComponent;
 import org.sonar.api.component.Component;
 import org.sonar.api.component.Perspective;
 
+import javax.annotation.CheckForNull;
+
 public abstract class PerspectiveBuilder<T extends Perspective> implements BatchComponent, ServerComponent {
 
   private final Class<T> perspectiveClass;
@@ -36,5 +38,6 @@ public abstract class PerspectiveBuilder<T extends Perspective> implements Batch
     return perspectiveClass;
   }
 
+  @CheckForNull
   protected abstract T loadPerspective(Class<T> perspectiveClass, Component component);
 }
Project SonarSource/sonarqube in file ...rc.main.java.org.sonar.api.resources.Resource.java (2014-02-20)
@@ -21,6 +21,7 @@ package org.sonar.api.resources;
 
 import org.apache.commons.lang.StringUtils;
 
+import javax.annotation.CheckForNull;
 import javax.annotation.Nullable;
 
 import java.io.Serializable;
@@ -233,6 +234,7 @@ public abstract class Resource implements Serializable {
     return this;
   }
 
+  @CheckForNull
   protected static String normalize(@Nullable String path) {
     if (StringUtils.isBlank(path)) {
       return null;
Project SonarSource/sonarqube in file ...rg.sonar.core.dashboard.ActiveDashboardMapper.java (2014-06-13)
@@ -20,10 +20,13 @@
 package org.sonar.core.dashboard;
 
 
+import javax.annotation.CheckForNull;
+
 public interface ActiveDashboardMapper {
 
   void insert(ActiveDashboardDto activeDashboardDto);
 
+  @CheckForNull
   Integer selectMaxOrderIndexForNullUser();
 
 }