Fix warn that fails compile

We don't throw any exception in `close` so we shouldn't declare
that we do. Declaring that we do angers that java gods because
we might throw `InterruptedException` which is evil to throw
in `close`.

Original commit: elastic/x-pack-elasticsearch@49ca8143d7
This commit is contained in:
Nik Everett 2017-06-29 09:34:04 -04:00
parent 0729c13f14
commit b713f091b2
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public abstract class ProtoHandler<R> implements HttpHandler, AutoCloseable {
} }
@Override @Override
public void close() throws Exception { public void close() {
// no-op // no-op
} }
} }