You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/02/12 11:29:22 UTC

[syncope] 02/02: Fixing deprecation warning

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 85ff7b93283b59ab09fab350e0d3c717fb06f935
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Wed Feb 12 12:28:41 2020 +0100

    Fixing deprecation warning
---
 .../apache/syncope/core/provisioning/java/job/ElasticsearchReindex.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ext/elasticsearch/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ElasticsearchReindex.java b/ext/elasticsearch/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ElasticsearchReindex.java
index 691c959..27c148c 100644
--- a/ext/elasticsearch/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ElasticsearchReindex.java
+++ b/ext/elasticsearch/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ElasticsearchReindex.java
@@ -124,6 +124,7 @@ public class ElasticsearchReindex extends AbstractSchedTaskJobDelegate {
         return "SUCCESS";
     }
 
+    @SuppressWarnings("deprecation")
     private void removeIndexIfExists(final AnyTypeKind kind) throws IOException {
         if (client.indices().exists(
                 new GetIndexRequest().indices(elasticsearchUtils.getContextDomainName(kind)), RequestOptions.DEFAULT)) {
@@ -135,6 +136,7 @@ public class ElasticsearchReindex extends AbstractSchedTaskJobDelegate {
         }
     }
 
+    @SuppressWarnings("deprecation")
     private void createIndex(final AnyTypeKind kind)
             throws InterruptedException, ExecutionException, IOException {