javax.annotation.Nullable



Project Graylog2/graylog2-server in file ...ces.system.inputs.requests.InputLaunchRequest.java (2014-12-19)
@@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.auto.value.AutoValue;
 
+import javax.annotation.Nullable;
 import java.util.Map;
 
 @JsonAutoDetect
@@ -33,6 +34,7 @@ public abstract class InputLaunchRequest {
     public abstract String type();
 
     @JsonProperty("creator_user_id")
+    @Nullable
     public abstract String creatorUserId();
 
     @JsonProperty
Project SonarSource/sonarqube in file ...va.org.sonar.core.properties.PropertiesMapper.java (2013-01-29)
@@ -21,18 +21,31 @@ package org.sonar.core.properties;
 
 import org.apache.ibatis.annotations.Param;
 
+import javax.annotation.Nullable;
+
 import java.util.List;
 
 public interface PropertiesMapper {
 
   List<String> findUserIdsForFavouriteResource(Long resourceId);
+
+  List<String> findUsersForNotification(@Param("notifKey") String notificationKey, @Nullable @Param("rId") Long resourceId);
+
   List<PropertyDto> selectGlobalProperties();
+
   List<PropertyDto> selectProjectProperties(String resourceKey);
+
   List<PropertyDto> selectSetOfResourceProperties(@Param("rId") Long projectId, @Param("propKeys") List<String> propertyKeys);
+
   PropertyDto selectByKey(PropertyDto key);
+
   void update(PropertyDto property);
+
   void insert(PropertyDto property);
+
   void deleteGlobalProperty(String key);
+
   void deleteGlobalProperties();
+
   void renamePropertyKey(@Param("oldKey") String oldKey, @Param("newKey") String newKey);
 }
Project SonarSource/sonarqube in file ...nar.batch.components.PastSnapshotFinderByDate.java (2013-09-23)
@@ -26,6 +26,8 @@ import org.sonar.api.database.model.Snapshot;
 import org.sonar.api.resources.Qualifiers;
 import org.sonar.api.utils.DateUtils;
 
+import javax.annotation.Nullable;
+
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
@@ -47,7 +49,7 @@ public class PastSnapshotFinderByDate implements BatchExtension {
     return new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_DATE, date, snapshot).setModeParameter(format.format(date));
   }
 
-
+  @Nullable
   private Snapshot findSnapshot(Snapshot projectSnapshot, Date date) {
     String hql = "from " + Snapshot.class.getSimpleName() + " where createdAt>=:date AND resourceId=:resourceId AND status=:status AND qualifier<>:lib order by createdAt asc";
     List<Snapshot> snapshots = session.createQuery(hql)
Project apache/hbase in file ...a.org.apache.hadoop.hbase.master.LoadBalancer.java (2015-02-10)
@@ -18,6 +18,7 @@
  */
 package org.apache.hadoop.hbase.master;
 
+import javax.annotation.Nullable;
 import java.util.List;
 import java.util.Map;
 
@@ -88,6 +89,7 @@ public interface LoadBalancer extends Configurable, Stoppable, ConfigurationObse
    * @param servers
    * @return List of plans
    */
+  @Nullable
   Map<ServerName, List<HRegionInfo>> retainAssignment(
     Map<HRegionInfo, ServerName> regions,
     List<ServerName> servers
Project crate/crate in file ...l.src.main.java.io.crate.analyze.CopyAnalysis.java (2014-05-20)
@@ -28,6 +28,8 @@ import io.crate.planner.symbol.Symbol;
 import org.elasticsearch.common.settings.ImmutableSettings;
 import org.elasticsearch.common.settings.Settings;
 
+import javax.annotation.Nullable;
+
 public class CopyAnalysis extends AbstractDataAnalysis {
 
     private Settings settings = ImmutableSettings.EMPTY;
@@ -50,6 +52,7 @@ public class CopyAnalysis extends AbstractDataAnalysis {
         return uri;
     }
 
+    @Nullable
     public String partitionIdent() {
         return this.partitionIdent;
     }