From c7897a7524e0bee94b5bdc54f8eb72bc2e3b4f77 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Thu, 29 Oct 2015 21:53:33 -0400 Subject: [PATCH] Make throw statement consistent with others in same class --- core/src/main/java/org/elasticsearch/common/cache/Cache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/common/cache/Cache.java b/core/src/main/java/org/elasticsearch/common/cache/Cache.java index 595ac088140..a6c3bc81afd 100644 --- a/core/src/main/java/org/elasticsearch/common/cache/Cache.java +++ b/core/src/main/java/org/elasticsearch/common/cache/Cache.java @@ -237,7 +237,7 @@ public class Cache { }).get(); } } catch (ExecutionException | InterruptedException e) { - throw new IllegalStateException("future should be a completedFuture for which get should not throw", e); + throw new IllegalStateException(e); } } return Tuple.tuple(entry, existing);