diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrRequest.java index 51e92dbbaa84..4264ae3579f0 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrRequest.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrRequest.java @@ -77,15 +77,22 @@ public enum METHOD { /**If set to true, every request that implements {@link V2RequestSupport} will be converted * to a V2 API call + * + * @deprecated */ + @Deprecated @SuppressWarnings({"rawtypes"}) public SolrRequest setUseV2(boolean flag){ this.usev2 = flag; return this; } - /**If set to true use javabin instead of json (default) + /** + * If set to true use javabin instead of json (default) + * + * @deprecated */ + @Deprecated @SuppressWarnings({"rawtypes"}) public SolrRequest setUseBinaryV2(boolean flag){ this.useBinaryV2 = flag; diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/V2RequestSupport.java b/solr/solrj/src/java/org/apache/solr/client/solrj/V2RequestSupport.java index 6e75749948fa..9bd341ca5819 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/V2RequestSupport.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/V2RequestSupport.java @@ -20,12 +20,17 @@ /**A a request object is able to convert itself to V2 Request * it should implement this interface * + * @deprecated */ +@Deprecated public interface V2RequestSupport { - /**If usev2 flag is set to true, return V2Request, if not, + /** + * If usev2 flag is set to true, return V2Request, if not, * return V1 request object * + * @deprecated */ + @Deprecated @SuppressWarnings({"rawtypes"}) SolrRequest getV2Request(); } diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java index 3ffebc3497d2..785737c5f0df 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java @@ -110,7 +110,7 @@ public CollectionAdminRequest(String path, CollectionAction action) { super(METHOD.GET, path); this.action = checkNotNull(CoreAdminParams.ACTION, action); } - + @Override @SuppressWarnings({"rawtypes"}) public SolrRequest getV2Request() {