From 80a7943d6aa3a41373a8312ad48004ad3d5d0a8f Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Mon, 22 Jan 2018 08:49:08 -0500 Subject: [PATCH] isHeldByCurrentThread should return primitive bool --- .../elasticsearch/common/util/concurrent/ReleasableLock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/common/util/concurrent/ReleasableLock.java b/server/src/main/java/org/elasticsearch/common/util/concurrent/ReleasableLock.java index 9c90b3bbde3..9cc5cf7bd81 100644 --- a/server/src/main/java/org/elasticsearch/common/util/concurrent/ReleasableLock.java +++ b/server/src/main/java/org/elasticsearch/common/util/concurrent/ReleasableLock.java @@ -74,7 +74,7 @@ public class ReleasableLock implements Releasable { return true; } - public Boolean isHeldByCurrentThread() { + public boolean isHeldByCurrentThread() { if (holdingThreads == null) { throw new UnsupportedOperationException("asserts must be enabled"); }