Don't explicitly declare runtime exceptions

This commit is contained in:
Michael Osipov 2019-12-15 11:01:13 +01:00
parent 83bc2c497d
commit 810e56b419
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class ManagedHttpCacheStorage implements HttpCacheStorage, Closeable {
this.active = new AtomicBoolean(true); this.active = new AtomicBoolean(true);
} }
private void ensureValidState() throws IllegalStateException { private void ensureValidState() {
if (!this.active.get()) { if (!this.active.get()) {
throw new IllegalStateException("Cache has been shut down"); throw new IllegalStateException("Cache has been shut down");
} }