Don't explicitly declare runtime exceptions
This commit is contained in:
parent
83bc2c497d
commit
810e56b419
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue