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 ...pache.hadoop.hbase.zookeeper.MetaTableLocator.java (2015-01-02)
@@ -27,7 +27,6 @@ import java.rmi.UnknownHostException;
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.annotation.Nullable;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -126,7 +125,6 @@ public class MetaTableLocator {
    * @param zkw zookeeper connection to use
    * @return server name or null if we failed to get the data.
    */
-  @Nullable
   public ServerName getMetaRegionLocation(final ZooKeeperWatcher zkw) {
     try {
       RegionState state = getMetaRegionState(zkw);
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