From c41574376f0295051b44b41bf627b76104ea6d4a Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Thu, 31 May 2018 09:19:05 +0200 Subject: [PATCH] Make AllocatedPersistentTask.isCompleted() protected (#30949) This commit changes the isCompleted() method to be protected so that classes that extends AllocatedPersistentTask can use it. Related to #30858 --- .../org/elasticsearch/persistent/AllocatedPersistentTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/persistent/AllocatedPersistentTask.java b/server/src/main/java/org/elasticsearch/persistent/AllocatedPersistentTask.java index 4d5c4a34f57..d4d299b7e4a 100644 --- a/server/src/main/java/org/elasticsearch/persistent/AllocatedPersistentTask.java +++ b/server/src/main/java/org/elasticsearch/persistent/AllocatedPersistentTask.java @@ -115,7 +115,7 @@ public class AllocatedPersistentTask extends CancellableTask { persistentTasksService.waitForPersistentTaskCondition(persistentTaskId, predicate, timeout, listener); } - final boolean isCompleted() { + protected final boolean isCompleted() { return state.get() == State.COMPLETED; }