org.elasticsearch.common.Nullable



API Populatity

5 Client projects

Project elasticsearch/elasticsearch in file ...va.org.elasticsearch.index.query.FilterParser.java (2012-05-21)
@@ -20,6 +20,7 @@
 package org.elasticsearch.index.query;
 
 import org.apache.lucene.search.Filter;
+import org.elasticsearch.common.Nullable;
 
 import java.io.IOException;
 
@@ -37,5 +38,6 @@ public interface FilterParser {
      * Parses the into a filter from the current parser location. Will be at "START_OBJECT" location,
      * and should end when the token is at the matching "END_OBJECT".
      */
+    @Nullable
     Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException;
 }
\ No newline at end of file
Project elasticsearch/elasticsearch in file ...java.org.elasticsearch.indices.IndicesService.java (2014-08-13)
@@ -22,6 +22,7 @@ package org.elasticsearch.indices;
 import com.google.common.collect.ImmutableMap;
 import org.elasticsearch.ElasticsearchException;
 import org.elasticsearch.action.admin.indices.stats.CommonStatsFlags;
+import org.elasticsearch.common.Nullable;
 import org.elasticsearch.common.component.LifecycleComponent;
 import org.elasticsearch.common.settings.Settings;
 import org.elasticsearch.index.service.IndexService;
@@ -62,6 +63,7 @@ public interface IndicesService extends Iterable<IndexService>, LifecycleCompone
      * Even if the index name appeared in {@link #indices()} <code>null</code> can still be returned as an
      * index maybe removed in the meantime, so preferable use the associated {@link IndexService} in order to prevent NPE.
      */
+    @Nullable
     IndexService indexService(String index);
 
     /**
Project elasticsearch/elasticsearch in file ...exedscripts.delete.DeleteIndexedScriptRequest.java (2014-08-11)
@@ -23,7 +23,6 @@ import org.elasticsearch.action.ActionRequest;
 import org.elasticsearch.action.ActionRequestValidationException;
 import org.elasticsearch.action.IndicesRequest;
 import org.elasticsearch.action.support.IndicesOptions;
-import org.elasticsearch.common.Nullable;
 import org.elasticsearch.common.io.stream.StreamInput;
 import org.elasticsearch.common.io.stream.StreamOutput;
 import org.elasticsearch.common.lucene.uid.Versions;
@@ -47,7 +46,6 @@ public class DeleteIndexedScriptRequest extends ActionRequest<DeleteIndexedScrip
 
     private String scriptLang;
     private String id;
-    @Nullable
     private long version = Versions.MATCH_ANY;
     private VersionType versionType = VersionType.INTERNAL;