Add deprecation headers to HLRC classes (#79754) (#79763)

This commit adds the @Deprecated annotation and Javadoc to HLRC classes.
# Conflicts:
#	client/rest-high-level/qa/ssl-enabled/src/javaRestTest/java/org/elasticsearch/client/documentation/EnrollmentDocumentationIT.java
#	client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/EnrichDocumentationIT.java
#	qa/ccs-rolling-upgrade-remote-cluster/src/test/java/org/elasticsearch/upgrades/SearchStatesIT.java
#	x-pack/qa/reindex-tests-with-security/src/test/java/org/elasticsearch/xpack/security/ReindexWithSecurityIT.java
#	x-pack/qa/security-example-spi-extension/src/javaRestTest/java/org/elasticsearch/example/role/CustomRolesProviderIT.java
#	x-pack/qa/smoke-test-plugins-ssl/src/test/java/org/elasticsearch/smoketest/SmokeTestMonitoringWithSecurityIT.java
This commit is contained in:
Lee Hinman 2021-10-25 17:12:52 -06:00 committed by GitHub
parent 556c71f39e
commit 08214dcf84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
104 changed files with 230 additions and 5 deletions

View file

@ -19,6 +19,13 @@ import java.io.IOException;
import static java.util.Collections.emptySet;
/**
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class AsyncSearchClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -39,7 +39,13 @@ import java.util.Collections;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-apis.html">
* X-Pack Rollup APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class CcrClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -34,7 +34,13 @@ import static java.util.Collections.singleton;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Cluster API.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html">Cluster API on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class ClusterClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -27,7 +27,13 @@ import java.util.Collections;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-apis.html">
* X-Pack Enrich Policy APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class EnrichClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -23,7 +23,13 @@ import java.util.Collections;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html">
* EQL APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class EqlClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -22,7 +22,13 @@ import static java.util.Collections.emptySet;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Snapshot API.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/features-apis.html">Snapshot API on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class FeaturesClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -16,7 +16,13 @@ import java.io.IOException;
import static java.util.Collections.emptySet;
/**
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class GraphClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -40,6 +40,13 @@ import java.io.IOException;
import static java.util.Collections.emptySet;
/**
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class IndexLifecycleClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -82,7 +82,13 @@ import static java.util.Collections.singleton;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Indices API.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices.html">Indices API on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class IndicesClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -27,7 +27,13 @@ import static java.util.Collections.emptySet;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Ingest API.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html">Ingest API on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class IngestClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -45,7 +45,13 @@ import static java.util.Collections.singleton;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/licensing-apis.html">
* X-Pack Licensing APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class LicenseClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -125,7 +125,13 @@ import java.util.Collections;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html">
* X-Pack Machine Learning APIs </a> for additional information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class MachineLearningClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -25,7 +25,13 @@ import java.util.Collections;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api.html">
* X-Pack Migration APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class MigrationClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -250,7 +250,12 @@ import static java.util.stream.Collectors.toList;
* {@link ResponseException}</li>
* </ul>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class RestHighLevelClient implements Closeable {
private static final Logger logger = LogManager.getLogger(RestHighLevelClient.class);

View file

@ -18,8 +18,12 @@ import java.util.List;
/**
* Helper to build a {@link RestHighLevelClient}, allowing setting the low-level client that
* should be used as well as whether API compatibility should be used.
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class RestHighLevelClientBuilder {
private final RestClient restClient;
private CheckedConsumer<RestClient, IOException> closeHandler = RestClient::close;

View file

@ -34,7 +34,13 @@ import java.util.Collections;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-apis.html">
* X-Pack Rollup APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class RollupClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -23,7 +23,13 @@ import java.util.Objects;
*
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html">Searchable Snapshots
* APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public class SearchableSnapshotsClient {
private RestHighLevelClient restHighLevelClient;

View file

@ -88,7 +88,13 @@ import static java.util.Collections.singleton;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Security APIs.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api.html">Security APIs on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class SecurityClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -37,7 +37,13 @@ import static java.util.Collections.emptySet;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Snapshot API.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html">Snapshot API on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class SnapshotClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -25,7 +25,13 @@ import static java.util.Collections.emptySet;
* A wrapper for the {@link RestHighLevelClient} that provides methods for accessing the Tasks API.
* <p>
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html">Task Management API on elastic.co</a>
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class TasksClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -7,20 +7,26 @@
*/
package org.elasticsearch.client;
import java.io.IOException;
import java.util.Collections;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.client.textstructure.FindStructureRequest;
import org.elasticsearch.client.textstructure.FindStructureResponse;
import java.io.IOException;
import java.util.Collections;
/**
* Text Structure API client wrapper for the {@link RestHighLevelClient}
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html">
* X-Pack Text Structure APIs </a> for additional information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class TextStructureClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -28,6 +28,13 @@ import org.elasticsearch.client.transform.UpdateTransformResponse;
import java.io.IOException;
import java.util.Collections;
/**
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class TransformClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -33,6 +33,13 @@ import java.io.IOException;
import static java.util.Collections.emptySet;
import static java.util.Collections.singleton;
/**
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class WatcherClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -26,7 +26,13 @@ import static java.util.Collections.emptySet;
* <p>
* See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html">
* REST APIs on elastic.co</a> for more information.
*
* @deprecated The High Level Rest Client is deprecated in favor of the
* <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html">
* Elasticsearch Java API Client</a>
*/
@Deprecated
@SuppressWarnings("removal")
public final class XPackClient {
private final RestHighLevelClient restHighLevelClient;

View file

@ -60,6 +60,7 @@ import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
@SuppressWarnings("removal")
public class CCRIT extends ESRestHighLevelClientTestCase {
@Before

View file

@ -53,6 +53,7 @@ import static org.mockito.Mockito.when;
/**
* Test and demonstrates how {@link RestHighLevelClient} can be extended to support custom endpoints.
*/
@SuppressWarnings("removal")
public class CustomRestHighLevelClientTests extends ESTestCase {
private static final String ENDPOINT = "/_custom";

View file

@ -61,6 +61,7 @@ import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.Matchers.notNullValue;
@SuppressWarnings("removal")
public abstract class ESRestHighLevelClientTestCase extends ESRestTestCase {
public static final String IGNORE_THROTTLED_DEPRECATION_WARNING = "[ignore_throttled] parameter is deprecated because frozen " +

View file

@ -25,6 +25,7 @@ import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
@SuppressWarnings("removal")
public class EnrichIT extends ESRestHighLevelClientTestCase {
public void testCRUD() throws Exception {

View file

@ -37,6 +37,7 @@ import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
@SuppressWarnings("removal")
public class EqlIT extends ESRestHighLevelClientTestCase {
private static final String INDEX_NAME = "index";

View file

@ -21,6 +21,7 @@ import java.util.Collections;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.notNullValue;
@SuppressWarnings("removal")
public class FeaturesIT extends ESRestHighLevelClientTestCase {
public void testGetFeatures() throws IOException {
GetFeaturesRequest request = new GetFeaturesRequest();

View file

@ -147,6 +147,7 @@ import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.Matchers.startsWith;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
@SuppressWarnings("removal")
public class IndicesClientIT extends ESRestHighLevelClientTestCase {
public static final RequestOptions LEGACY_TEMPLATE_OPTIONS = RequestOptions.DEFAULT.toBuilder()

View file

@ -55,6 +55,7 @@ import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.hamcrest.Matchers.nullValue;
@SuppressWarnings("removal")
public class MachineLearningGetResultsIT extends ESRestHighLevelClientTestCase {
private static final String RESULTS_INDEX = ".ml-anomalies-shared";

View file

@ -220,6 +220,7 @@ import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
@SuppressWarnings("removal")
public class MachineLearningIT extends ESRestHighLevelClientTestCase {
private static final RequestOptions POST_DATA_OPTIONS = RequestOptions.DEFAULT.toBuilder()

View file

@ -23,6 +23,7 @@ import java.util.stream.Stream;
/**
* Cleans up ML resources created during tests
*/
@SuppressWarnings("removal")
public class MlTestStateCleaner {
private final Logger logger;

View file

@ -27,6 +27,7 @@ import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@SuppressWarnings("removal")
public class MockRestHighLevelTests extends ESTestCase {
private RestHighLevelClient client;
private static final List<String> WARNINGS = Collections.singletonList("Some Warning");

View file

@ -28,6 +28,7 @@ import static org.mockito.Mockito.mock;
* This test works against a {@link RestHighLevelClient} subclass that simulates how custom response sections returned by
* Elasticsearch plugins can be parsed using the high level client.
*/
@SuppressWarnings("removal")
public class RestHighLevelClientExtTests extends ESTestCase {
private RestHighLevelClient restHighLevelClient;

View file

@ -160,6 +160,7 @@ import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@SuppressWarnings("removal")
public class RestHighLevelClientTests extends ESTestCase {
private static final String SUBMIT_TASK_PREFIX = "submit_";

View file

@ -71,6 +71,7 @@ import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.lessThan;
@SuppressWarnings("removal")
public class RollupIT extends ESRestHighLevelClientTestCase {
double sum = 0.0d;

View file

@ -49,6 +49,7 @@ import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
@SuppressWarnings("removal")
public class SearchableSnapshotsIT extends ESRestHighLevelClientTestCase {
@Before

View file

@ -51,6 +51,7 @@ import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.nullValue;
@SuppressWarnings("removal")
public class SecurityIT extends ESRestHighLevelClientTestCase {
public void testPutUser() throws Exception {

View file

@ -16,6 +16,7 @@ import org.elasticsearch.client.textstructure.FindStructureRequest;
import org.elasticsearch.client.textstructure.FindStructureResponse;
import org.elasticsearch.client.textstructure.structurefinder.TextStructure;
@SuppressWarnings("removal")
public class TextStructureIT extends ESRestHighLevelClientTestCase {
public void testFindFileStructure() throws IOException {

View file

@ -75,6 +75,7 @@ import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.oneOf;
@SuppressWarnings("removal")
public class TransformIT extends ESRestHighLevelClientTestCase {
private List<String> transformsToClean = new ArrayList<>();

View file

@ -33,6 +33,7 @@ import java.util.concurrent.TimeUnit;
* Documentation for Async Search APIs in the high level java client.
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
*/
@SuppressWarnings("removal")
public class AsyncSearchDocumentationIT extends ESRestHighLevelClientTestCase {
@Before void setUpIndex() throws IOException {

View file

@ -58,6 +58,7 @@ import java.util.concurrent.TimeUnit;
import static org.hamcrest.Matchers.is;
@SuppressWarnings("removal")
public class CCRDocumentationIT extends ESRestHighLevelClientTestCase {
@Before

View file

@ -95,6 +95,7 @@ import static org.hamcrest.Matchers.not;
* Documentation for CRUD APIs in the high level java client.
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
*/
@SuppressWarnings("removal")
public class CRUDDocumentationIT extends ESRestHighLevelClientTestCase {
@SuppressWarnings("unused")

View file

@ -62,6 +62,7 @@ import static org.hamcrest.Matchers.notNullValue;
* Documentation for Cluster APIs in the high level java client.
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
*/
@SuppressWarnings("removal")
public class ClusterClientDocumentationIT extends ESRestHighLevelClientTestCase {
public void testClusterPutSettings() throws IOException {

View file

@ -35,6 +35,7 @@ import java.util.concurrent.TimeUnit;
import static java.util.Collections.singletonMap;
@SuppressWarnings("removal")
public class EnrichDocumentationIT extends ESRestHighLevelClientTestCase {
@After

View file

@ -26,6 +26,7 @@ import org.junit.Before;
import java.io.IOException;
import java.util.Collection;
@SuppressWarnings("removal")
public class GraphDocumentationIT extends ESRestHighLevelClientTestCase {

View file

@ -85,6 +85,7 @@ import static org.hamcrest.Matchers.containsStringIgnoringCase;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
@SuppressWarnings("removal")
public class ILMDocumentationIT extends ESRestHighLevelClientTestCase {
public void testPutLifecyclePolicy() throws Exception {

View file

@ -138,6 +138,7 @@ import static org.hamcrest.Matchers.nullValue;
* than 84, the line will be cut and a horizontal scroll bar will be displayed.
* (the code indentation of the tag is not included in the width)
*/
@SuppressWarnings("removal")
public class IndicesClientDocumentationIT extends ESRestHighLevelClientTestCase {
public void testIndicesExist() throws IOException {

View file

@ -54,6 +54,7 @@ import java.util.concurrent.TimeUnit;
* than 84, the line will be cut and a horizontal scroll bar will be displayed.
* (the code indentation of the tag is not included in the width)
*/
@SuppressWarnings("removal")
public class IngestClientDocumentationIT extends ESRestHighLevelClientTestCase {
public void testPutPipeline() throws IOException {

View file

@ -49,6 +49,7 @@ import static org.hamcrest.core.Is.is;
* Documentation for Licensing APIs in the high level java client.
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
*/
@SuppressWarnings("removal")
public class LicensingDocumentationIT extends ESRestHighLevelClientTestCase {
@BeforeClass

View file

@ -42,6 +42,7 @@ import java.util.concurrent.TimeUnit;
* than 84, the line will be cut and a horizontal scroll bar will be displayed.
* (the code indentation of the tag is not included in the width)
*/
@SuppressWarnings("removal")
public class MigrationClientDocumentationIT extends ESRestHighLevelClientTestCase {
public void testGetDeprecationInfo() throws IOException, InterruptedException {

View file

@ -44,6 +44,7 @@ import java.util.Map;
* include-tagged::{doc-tests}/MigrationDocumentationIT.java[example]
* --------------------------------------------------
*/
@SuppressWarnings("removal")
public class MigrationDocumentationIT extends ESRestHighLevelClientTestCase {
public void testClusterHealth() throws IOException {
RestHighLevelClient client = highLevelClient();

View file

@ -38,6 +38,7 @@ import static org.hamcrest.Matchers.is;
* Documentation for miscellaneous APIs in the high level java client.
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
*/
@SuppressWarnings("removal")
public class MiscellaneousDocumentationIT extends ESRestHighLevelClientTestCase {
public void testMain() throws IOException {

View file

@ -236,6 +236,7 @@ import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.core.Is.is;
@SuppressWarnings("removal")
public class MlClientDocumentationIT extends ESRestHighLevelClientTestCase {
private static final RequestOptions POST_DATA_OPTIONS = RequestOptions.DEFAULT.toBuilder()

View file

@ -71,6 +71,7 @@ import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.oneOf;
@SuppressWarnings("removal")
public class RollupDocumentationIT extends ESRestHighLevelClientTestCase {
@Before

View file

@ -122,6 +122,7 @@ import static org.hamcrest.Matchers.greaterThan;
* Documentation for search APIs in the high level java client.
* Code wrapped in {@code tag} and {@code end} tags is included in the docs.
*/
@SuppressWarnings("removal")
public class SearchDocumentationIT extends ESRestHighLevelClientTestCase {
@SuppressWarnings({"unused", "unchecked"})

View file

@ -41,6 +41,7 @@ import java.util.concurrent.TimeUnit;
import static org.hamcrest.Matchers.is;
@SuppressWarnings("removal")
public class SearchableSnapshotsDocumentationIT extends ESRestHighLevelClientTestCase {
public void testMountSnapshot() throws IOException, InterruptedException {

View file

@ -157,6 +157,7 @@ import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
@SuppressWarnings("removal")
public class SecurityDocumentationIT extends ESRestHighLevelClientTestCase {
@Override

View file

@ -80,6 +80,7 @@ import static org.hamcrest.Matchers.equalTo;
* than 84, the line will be cut and a horizontal scroll bar will be displayed.
* (the code indentation of the tag is not included in the width)
*/
@SuppressWarnings("removal")
public class SnapshotClientDocumentationIT extends ESRestHighLevelClientTestCase {
private static final String repositoryName = "test_repository";

View file

@ -55,6 +55,7 @@ import static org.hamcrest.Matchers.equalTo;
* than 84, the line will be cut and a horizontal scroll bar will be displayed.
* (the code indentation of the tag is not included in the width)
*/
@SuppressWarnings("removal")
public class StoredScriptsDocumentationIT extends ESRestHighLevelClientTestCase {
@SuppressWarnings("unused")

View file

@ -55,6 +55,7 @@ import static org.hamcrest.Matchers.notNullValue;
* than 84, the line will be cut and a horizontal scroll bar will be displayed.
* (the code indentation of the tag is not included in the width)
*/
@SuppressWarnings("removal")
public class TasksClientDocumentationIT extends ESRestHighLevelClientTestCase {
@SuppressWarnings("unused")

View file

@ -23,6 +23,7 @@ import org.elasticsearch.client.textstructure.FindStructureRequest;
import org.elasticsearch.client.textstructure.FindStructureResponse;
import org.elasticsearch.client.textstructure.structurefinder.TextStructure;
@SuppressWarnings("removal")
public class TextStructureClientDocumentationIT extends ESRestHighLevelClientTestCase {
public void testFindStructure() throws Exception {

View file

@ -66,6 +66,7 @@ import static org.elasticsearch.xcontent.XContentFactory.jsonBuilder;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;
@SuppressWarnings("removal")
public class TransformDocumentationIT extends ESRestHighLevelClientTestCase {
private List<String> transformsToClean = new ArrayList<>();

View file

@ -49,6 +49,7 @@ import java.util.concurrent.TimeUnit;
import static org.hamcrest.Matchers.is;
@SuppressWarnings("removal")
public class WatcherDocumentationIT extends ESRestHighLevelClientTestCase {
public void testStartStopWatchService() throws Exception {