From 810e56b419911db21de687ef77408127263fb57b Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 15 Dec 2019 11:01:13 +0100 Subject: [PATCH] Don't explicitly declare runtime exceptions --- .../hc/client5/http/impl/cache/ManagedHttpCacheStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ManagedHttpCacheStorage.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ManagedHttpCacheStorage.java index 0623171ce..4582edc97 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ManagedHttpCacheStorage.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ManagedHttpCacheStorage.java @@ -90,7 +90,7 @@ public class ManagedHttpCacheStorage implements HttpCacheStorage, Closeable { this.active = new AtomicBoolean(true); } - private void ensureValidState() throws IllegalStateException { + private void ensureValidState() { if (!this.active.get()) { throw new IllegalStateException("Cache has been shut down"); }